summaryrefslogtreecommitdiff
path: root/cider-mode.el
diff options
context:
space:
mode:
authorBozhidar Batsov <bozhidar@batsov.com>2018-06-19 21:29:05 +0300
committerBozhidar Batsov <bozhidar@batsov.com>2018-06-19 21:29:05 +0300
commiteea7e6e1402d4640f1515177a48ca0fefea18ca4 (patch)
treea43d807ec876d2be40c268ba8cfe85087781f4b3 /cider-mode.el
parentd07081df569ce2682c387d537030c7598ff4b028 (diff)
Introduce a new command named `cider` (`C-c M-x`)
The command acts as a simple wrapper around all commands for starting/connecting to REPLs. It spares you having to remember a ton of keybindings and pays special homage to the one true `M-x`.
Diffstat (limited to 'cider-mode.el')
-rw-r--r--cider-mode.el25
1 files changed, 14 insertions, 11 deletions
diff --git a/cider-mode.el b/cider-mode.el
index 93a2a191..61f03d97 100644
--- a/cider-mode.el
+++ b/cider-mode.el
@@ -174,20 +174,23 @@ the related commands `cider-repl-clear-buffer' and
;;; The menu-bar
(defconst cider-mode-menu
`("CIDER"
- ["Start a REPL" cider-jack-in
- :help "Starts an nREPL server (with Leiningen, Boot, or Gradle) and connects a REPL to it."]
- ["Connect to a REPL" cider-connect
- :help "Connects to a REPL that's already running."]
- ["Quit" cider-quit :active (cider-connected-p)]
- ["Restart" cider-restart :active (cider-connected-p)]
+ ["Start or connect to any REPL" cider
+ :help "A simple wrapper around all commands for starting/connecting to a REPL."]
+ ("Clojure"
+ ["Start a Clojure REPL" cider-jack-in
+ :help "Starts an nREPL server and connects a Clojure REPL to it."]
+ ["Connect to a Clojure REPL" cider-connect
+ :help "Connects to a REPL that's already running."])
("ClojureScript"
- ["Start a Clojure REPL, and a ClojureScript REPL" cider-jack-in-clojurescript
- :help "Starts an nREPL server, connects a Clojure REPL to it, and then a ClojureScript REPL.
-Configure `cider-cljs-repl-types' to change the ClojureScript REPL to use for your build tool."]
+ ["Start a ClojureScript REPL" cider-jack-in-clojurescript
+ :help "Starts an nREPL server and connects a ClojureScript REPL to it."]
["Connect to a ClojureScript REPL" cider-connect-clojurescript
:help "Connects to a ClojureScript REPL that's already running."]
["Create a ClojureScript REPL from a Clojure REPL" cider-jack-in-sibling-clojurescript])
"--"
+ ["Quit" cider-quit :active (cider-connected-p)]
+ ["Restart" cider-restart :active (cider-connected-p)]
+ "--"
["Connection info" cider-describe-current-connection
:active (cider-connected-p)]
["Select any CIDER buffer" cider-selector]
@@ -204,8 +207,8 @@ Configure `cider-cljs-repl-types' to change the ClojureScript REPL to use for yo
:active (seq-remove #'null cider-ancillary-buffers)]
("nREPL" :active (cider-connected-p)
["Describe nrepl session" cider-describe-nrepl-session]
- ["Toggle message logging" nrepl-toggle-message-logging]))
- "Menu for CIDER mode.")
+ ["Toggle message logging" nrepl-toggle-message-logging])
+ "Menu for CIDER mode."))
(defconst cider-mode-eval-menu
'("CIDER Eval" :visible (cider-connected-p)