branch: elpa/cider
commit 9f87c68ee6de5a67c9d846b05c729325b61234d9
Author: Kato Muso <m...@katomuso.io>
Commit: Bozhidar Batsov <bozhi...@batsov.dev>

    Move cheatsheet buffer name to cider-cheatsheet-buffer constant
---
 cider-cheatsheet.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/cider-cheatsheet.el b/cider-cheatsheet.el
index 6ab38fc60e..4bdf0a221e 100644
--- a/cider-cheatsheet.el
+++ b/cider-cheatsheet.el
@@ -34,6 +34,8 @@
 (require 'seq)
 (require 'subr-x)
 
+(defconst cider-cheatsheet-buffer "*cider-cheatsheet*")
+
 (defconst cider-cheatsheet-hierarchy
   '(("Documentation"
      ("REPL"
@@ -606,7 +608,7 @@ With a prefix argument FLAT, represent each candidate as a 
full path to var."
 (defun cider-cheatsheet ()
   "Display cheatsheet in a popup buffer."
   (interactive)
-  (with-current-buffer (cider-popup-buffer "*cider-cheatsheet*")
+  (with-current-buffer (cider-popup-buffer cider-cheatsheet-buffer)
     (read-only-mode -1)
     (insert (cider-cheatsheet--buffer-contents))
     (read-only-mode 1)

Reply via email to