Skip to content

Commit b0cee9e

Browse files
author
Bozhidar Batsov
committed
Add a menu for cider-macroexpansion-minor-mode
1 parent 8a45d2c commit b0cee9e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

cider-macroexpansion.el

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,16 @@ and point is placed at CURRENT-POINT."
149149
(define-key map (kbd "d") 'cider-doc)
150150
(define-key map (kbd "j") 'cider-doc-javadoc)
151151
(define-key map (kbd ".") 'cider-jump-to-var)
152+
(easy-menu-define cider-macroexpansion-minor-mode-menu map
153+
"Menu for CIDER's doc mode"
154+
'("Macroexpansion"
155+
["Restart expansion" cider-macroexpand-again]
156+
["Macroexpand-1" cider-macroexpand-1-inplace]
157+
["Macroexpand-all" cider-macroexpand-all-inplace]
158+
["Go to source" cider-jump-to-var]
159+
["Go to doc" cider-doc]
160+
["Go to Javadoc" cider-doc-javadoc]
161+
["Quit" cider-popup-buffer-quit-function]))
152162
(cl-labels ((redefine-key (from to)
153163
(dolist (mapping (where-is-internal from cider-mode-map))
154164
(define-key map mapping to))))

0 commit comments

Comments
 (0)