Skip to content

Commit da768bb

Browse files
committed
[Fix #1111] Clean up the cider-mode & cider-repl-mode menus
1 parent 5d01de2 commit da768bb

File tree

2 files changed

+47
-35
lines changed

2 files changed

+47
-35
lines changed

cider-mode.el

Lines changed: 36 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -112,48 +112,55 @@ entirely."
112112
"--"
113113
,cider-doc-menu
114114
"--"
115-
["Eval top-level sexp at point" cider-eval-defun-at-point]
116-
["Eval last sexp" cider-eval-last-sexp]
117-
["Eval last sexp in popup buffer" cider-pprint-eval-last-sexp]
118-
["Eval last sexp to REPL buffer" cider-eval-last-sexp-to-repl]
119-
["Eval last sexp and replace" cider-eval-last-sexp-and-replace]
120-
["Eval region" cider-eval-region]
121-
["Eval ns form" cider-eval-ns-form]
122-
["Insert last sexp in REPL" cider-insert-last-sexp-in-repl]
123-
"--"
124-
["Load (eval) buffer" cider-load-buffer]
125-
["Load (eval) file" cider-load-file]
126-
"--"
127-
["Macroexpand-1" cider-macroexpand-1]
128-
["Macroexpand-all" cider-macroexpand-all]
129-
"--"
130-
["Jump to source" cider-find-var]
131-
["Jump to resource" cider-find-resource]
132-
["Jump back" cider-jump-back]
133-
"--"
134-
["Run test" cider-test-run-test]
135-
["Run all tests" cider-test-run-tests]
136-
["Rerun failed/erring tests" cider-test-rerun-tests]
137-
["Show test report" cider-test-show-report]
115+
("Eval"
116+
["Eval top-level sexp at point" cider-eval-defun-at-point]
117+
["Eval last sexp" cider-eval-last-sexp]
118+
["Eval last sexp in popup buffer" cider-pprint-eval-last-sexp]
119+
["Eval last sexp to REPL buffer" cider-eval-last-sexp-to-repl]
120+
["Eval last sexp and replace" cider-eval-last-sexp-and-replace]
121+
["Eval region" cider-eval-region]
122+
["Eval ns form" cider-eval-ns-form]
123+
["Insert last sexp in REPL" cider-insert-last-sexp-in-repl]
124+
"--"
125+
["Load (eval) buffer" cider-load-buffer]
126+
["Load (eval) file" cider-load-file])
127+
("Macroexpand"
128+
["Macroexpand-1" cider-macroexpand-1]
129+
["Macroexpand-all" cider-macroexpand-all])
130+
("Find"
131+
["Find definition" cider-find-var]
132+
["Find resource" cider-find-resource]
133+
["Jump back" cider-jump-back])
134+
("Test"
135+
["Run test" cider-test-run-test]
136+
["Run all tests" cider-test-run-tests]
137+
["Rerun failed/erring tests" cider-test-rerun-tests]
138+
["Show test report" cider-test-show-report])
138139
"--"
139140
["Inspect" cider-inspect]
141+
["Toggle var tracing" cider-toggle-trace-var]
142+
["Toggle ns tracing" cider-toggle-trace-ns]
143+
["Refresh loaded code" cider-refresh]
144+
"--"
140145
["Debug top-level form" cider-debug-defun-at-point]
141146
"--"
142147
["Set ns" cider-repl-set-ns]
143148
["Switch to REPL" cider-switch-to-repl-buffer]
144149
["Switch to Relevant REPL" cider-switch-to-relevant-repl-buffer]
145150
["Toggle REPL Pretty Print" cider-repl-toggle-pretty-printing]
146151
["Clear REPL" cider-find-and-clear-repl-buffer]
147-
["Refresh loaded code" cider-refresh]
152+
"--"
153+
("nREPL"
154+
["Describe session" cider-describe-nrepl-session]
155+
["Close session" cider-close-nrepl-session]
156+
["Connection info" cider-display-current-connection-info]
157+
["Rotate connection" cider-rotate-connection])
158+
"--"
148159
["Interrupt evaluation" cider-interrupt]
160+
"--"
149161
["Quit" cider-quit]
150162
["Restart" cider-restart]
151163
"--"
152-
["Describe nREPL session" cider-describe-nrepl-session]
153-
["Close nREPL session" cider-close-nrepl-session]
154-
["Display nREPL connection" cider-display-current-connection-info]
155-
["Rotate nREPL connection" cider-rotate-connection]
156-
"--"
157164
["Version info" cider-version]))
158165
map))
159166

cider-repl.el

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,17 +1045,21 @@ constructs."
10451045
"--"
10461046
,cider-doc-menu
10471047
"--"
1048-
["Jump to source" cider-find-var]
1049-
["Jump to resource" cider-find-resource]
1050-
["Jump back" cider-jump-back]
1048+
("Find"
1049+
["Find definition" cider-find-var]
1050+
["Find resource" cider-find-resource]
1051+
["Jump back" cider-jump-back])
1052+
"--"
10511053
["Switch to Clojure buffer" cider-switch-to-last-clojure-buffer]
10521054
"--"
1055+
("Macroexpand"
1056+
["Macroexpand-1" cider-macroexpand-1]
1057+
["Macroexpand-all" cider-macroexpand-all])
1058+
"--"
10531059
["Inspect" cider-inspect]
1054-
["Macroexpand" cider-macroexpand-1]
1055-
["Macroexpand all" cider-macroexpand-all]
1056-
["Refresh loaded code" cider-refresh]
10571060
["Toggle var tracing" cider-toggle-trace-var]
10581061
["Toggle ns tracing" cider-toggle-trace-ns]
1062+
["Refresh loaded code" cider-refresh]
10591063
"--"
10601064
["Set REPL ns" cider-repl-set-ns]
10611065
["Toggle pretty printing" cider-repl-toggle-pretty-printing]
@@ -1065,6 +1069,7 @@ constructs."
10651069
["Clear output" cider-repl-clear-output]
10661070
["Clear buffer" cider-repl-clear-buffer]
10671071
["Kill input" cider-repl-kill-input]
1072+
"--"
10681073
["Interrupt evaluation" cider-interrupt]
10691074
"--"
10701075
["Quit" cider-quit]

0 commit comments

Comments
 (0)