[Clojure] keybinding for updated repl jack-in commands
Latest CIDER release uses the following commands for starting the REPL from within Emacs `cider-jack-in-clj` to start a Clojure REPL `cider-jack-in-clj&cljs` to start a Clojure and ClojureScript REPL `cider-jack-in-cljs` to start a ClojureScript repl The older aliases are deprecated and are being removed in the latest beta release of CIDER `cider-jack-in` `cider-jack-in-clojurescript` Keybindings for these jack-in commands have been updated and as there are three options they have been moved under the repl > jack-in The top level of the Clojure mode menu has the existing keybindings updated to use the new commands. A third top-level keybinding `&` has been added for `cider-jack-in-clj&cljs`
This commit is contained in:
parent
e12278a323
commit
8fd218f1e8
|
@ -1192,6 +1192,13 @@ Other:
|
|||
- ~SPC m e v~ to evaluate s-expression at point (=cider-eval-sexp-at-point=)
|
||||
- ~SPC m s u~ require Clojure utils into current namespace
|
||||
i.e. functions =doc= =source= (thanks to John Stevenson)
|
||||
- ~SPC m s j c~ updated to call =cider-jack-in-clj= rather than old alias
|
||||
=cider-jack-in= (thanks to John Stevenson)
|
||||
- ~SPC m s j f~ new keybinding to call =cider-jack-in-clj&cjls=
|
||||
(thanks to John Stevenson)
|
||||
- ~SPC m s j s~ updated to call =cider-jack-in-cljs= rather than old alias
|
||||
=cider-jack-in-clojurescript= which is deprecated
|
||||
(thanks to John Stevenson)
|
||||
- Fixes:
|
||||
- Remove `cider.nrepl/cider-middleware` in lein quick start setting
|
||||
- Fixed =cider-inspector-prev-page= binding, also add ~p~ as another key
|
||||
|
|
|
@ -277,7 +277,7 @@ As this state works the same for all files, the documentation is in global
|
|||
*** REPL
|
||||
|
||||
| Key binding | Description |
|
||||
|-------------+--------------------------------------------------------------------------------|
|
||||
|---------------+--------------------------------------------------------------------------------|
|
||||
| ~SPC m ,~ | handle shortcut (cider-repl-handle-shortcut) |
|
||||
| ~SPC m s b~ | send and eval buffer in REPL |
|
||||
| ~SPC m s B~ | send and eval buffer and switch to REPL in =insert state= |
|
||||
|
@ -287,8 +287,9 @@ As this state works the same for all files, the documentation is in global
|
|||
| ~SPC m s E~ | send and eval last sexp and switch to REPL in =insert state= |
|
||||
| ~SPC m s f~ | send and eval function in REPL |
|
||||
| ~SPC m s F~ | send and eval function and switch to REPL in =insert state= |
|
||||
| ~SPC m s i~ | start REPL (cider-jack-in) |
|
||||
| ~SPC m s I~ | start clojurescript REPL (cider-jack-in-clojurescript) |
|
||||
| ~SPC m s j c~ | start Clojure REPL (=cider-jack-in-clj=) |
|
||||
| ~SPC m s j f~ | start Clojure REPL (=cider-jack-in-clj&cljs=) |
|
||||
| ~SPC m s j s~ | start ClojureScript REPL (=cider-jack-in-cljs=) |
|
||||
| ~SPC m s n~ | send and eval ns form in REPL |
|
||||
| ~SPC m s N~ | send and eval ns form and switch to REPL in =insert state= |
|
||||
| ~SPC m s q~ | kill REPL (cider-quit) |
|
||||
|
|
|
@ -62,6 +62,7 @@
|
|||
("mh" . "documentation")
|
||||
("mp" . "profile")
|
||||
("ms" . "repl")
|
||||
("msj" . "jack-in")
|
||||
("mt" . "test")
|
||||
("mT" . "toggle")
|
||||
)))
|
||||
|
@ -103,8 +104,9 @@
|
|||
"gs" 'cider-browse-spec
|
||||
"gS" 'cider-browse-spec-all
|
||||
|
||||
"'" 'cider-jack-in
|
||||
"\"" 'cider-jack-in-clojurescript
|
||||
"'" 'cider-jack-in-clj
|
||||
"\"" 'cider-jack-in-cljs
|
||||
"\&" 'cider-jack-in-clj&cljs
|
||||
"sb" 'cider-load-buffer
|
||||
"sB" 'spacemacs/cider-send-buffer-in-repl-and-focus
|
||||
"sc" (if (eq m 'cider-repl-mode)
|
||||
|
@ -115,8 +117,9 @@
|
|||
"sE" 'spacemacs/cider-send-last-sexp-to-repl-focus
|
||||
"sf" 'spacemacs/cider-send-function-to-repl
|
||||
"sF" 'spacemacs/cider-send-function-to-repl-focus
|
||||
"si" 'cider-jack-in
|
||||
"sI" 'cider-jack-in-clojurescript
|
||||
"sjc" 'cider-jack-in-clj
|
||||
"sjf" 'cider-jack-in-clj&cljs
|
||||
"sjs" 'cider-jack-in-cljs
|
||||
"sn" 'spacemacs/cider-send-ns-form-to-repl
|
||||
"sN" 'spacemacs/cider-send-ns-form-to-repl-focus
|
||||
"so" 'cider-repl-switch-to-other
|
||||
|
|
Loading…
Reference in a new issue