Skip to content

Commit 9f87c68

Browse files
katomusobbatsov
authored andcommitted
Move cheatsheet buffer name to cider-cheatsheet-buffer constant
1 parent c190a24 commit 9f87c68

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cider-cheatsheet.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
(require 'seq)
3535
(require 'subr-x)
3636

37+
(defconst cider-cheatsheet-buffer "*cider-cheatsheet*")
38+
3739
(defconst cider-cheatsheet-hierarchy
3840
'(("Documentation"
3941
("REPL"
@@ -606,7 +608,7 @@ With a prefix argument FLAT, represent each candidate as a full path to var."
606608
(defun cider-cheatsheet ()
607609
"Display cheatsheet in a popup buffer."
608610
(interactive)
609-
(with-current-buffer (cider-popup-buffer "*cider-cheatsheet*")
611+
(with-current-buffer (cider-popup-buffer cider-cheatsheet-buffer)
610612
(read-only-mode -1)
611613
(insert (cider-cheatsheet--buffer-contents))
612614
(read-only-mode 1)

0 commit comments

Comments
 (0)