feat(clojure-lang): add `cider-eval-sexp-at-point`

Adds a useful CIDER command that doesn't have an idiomatic Spacemacs command.

Ref:
https://cider.readthedocs.io/en/latest/interactive_programming/#using-cider-mode
This commit is contained in:
Jonathan Chen 2019-07-03 15:06:11 -07:00 committed by duianto
parent d6c8df3d00
commit 28adf374fe
3 changed files with 3 additions and 0 deletions

View File

@ -1184,6 +1184,7 @@ Other:
(thanks to John Stevenson)
- ~SPC m e i~ interrupt the current evaluation (stop long running process)
(thanks to John Stevenson)
- ~SPC m e v~ to evaluate s-expression at point (=cider-eval-sexp-at-point=)
- Fixes:
- Remove `cider.nrepl/cider-middleware` in lein quick start setting
- Fixed =cider-inspector-prev-page= binding, also add ~p~ as another key

View File

@ -258,6 +258,7 @@ As this state works the same for all files, the documentation is in global
| ~SPC m e p~ | print last sexp (clojure interaction mode only) |
| ~SPC m e P~ | eval last sexp and pretty print result in separate buffer |
| ~SPC m e u~ | Undefine a symbol from the current namespace |
| ~SPC m e v~ | eval sexp around point |
| ~SPC m e w~ | eval last sexp and replace with result |
*** Goto

View File

@ -89,6 +89,7 @@
"eP" 'cider-pprint-eval-last-sexp
"er" 'cider-eval-region
"eu" 'cider-undef
"ev" 'cider-eval-sexp-at-point
"ew" 'cider-eval-last-sexp-and-replace
"=" 'cider-format-buffer