Skip to content

Commit d031aff

Browse files
practicalli-johnnywang-d
authored andcommitted
[clojure] key binding for cider eval list around point
New command added to CIDER in version 0.26 to evaluate the list around the current point, different to evaluate sexp around point which also evaluates symbols. clojure-emacs/cider#2881
1 parent 348a28c commit d031aff

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

CHANGELOG.develop

+4
Original file line numberDiff line numberDiff line change
@@ -1633,6 +1633,10 @@ Other:
16331633
~raN~ 'clojure-insert-ns-form-at-point
16341634
~rsn~ 'clojure-sort-ns
16351635
(thanks to John Stevenson)
1636+
- Add key binding for new function cider-eval-list-around-point
1637+
added in CIDER 0.26
1638+
~SPC m e (~ 'cider-eval-list-at-point
1639+
(thanks to John Stevenson)
16361640
- Fixes:
16371641
- Removed =cider.nrepl/cider-middleware= in lein quick start setting
16381642
- Fixed =cider-inspector-prev-page= binding, also add ~p~ as another key

layers/+lang/clojure/README.org

+1
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,7 @@ Evaluate Clojure code in the source code buffer
487487
|---------------+-------------------------------------------------------------------|
488488
| ~SPC m e ;~ | eval sexp and show result as comment |
489489
| ~SPC m e $~ | go to end of line and eval last sexp |
490+
| ~SPC m e (~ | eval 'list' around point (sequence, list, vector, map, set) |
490491
| ~SPC m e b~ | eval buffer |
491492
| ~SPC m e e~ | eval last sexp |
492493
| ~SPC m e f~ | eval function at point |

layers/+lang/clojure/packages.el

+1
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@
108108
;; evaluate in source code buffer
109109
"e;" 'cider-eval-defun-to-comment
110110
"e$" 'spacemacs/cider-eval-sexp-end-of-line
111+
"e(" 'cider-eval-list-at-point
111112
"eb" 'cider-eval-buffer
112113
"ee" 'cider-eval-last-sexp
113114
"ef" 'cider-eval-defun-at-point

0 commit comments

Comments
 (0)