Skip to content

Commit

Permalink
[Fix #2617] Add an entry in cider-mode-eval-menu for `insert and eval…
Browse files Browse the repository at this point in the history
… in REPL` (#2810)
  • Loading branch information
suvratapte authored Feb 27, 2020
1 parent 2f183e5 commit 071cfb2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## master (unreleased)

### Changes

* [#2617](https://github.com/clojure-emacs/cider/pull/2617): Add menu bar entry for `Insert last sexp in REPL and eval` under `CIDER Eval`.

### Bugs fixed

* [#2807](https://github.com/clojure-emacs/cider/pull/2807): Fix require-repl-utils for shadow-cljs repls
Expand Down
2 changes: 2 additions & 0 deletions cider-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,8 @@ If invoked with a prefix ARG eval the expression after inserting it."
["Interrupt evaluation" cider-interrupt]
"--"
["Insert last sexp in REPL" cider-insert-last-sexp-in-repl]
["Insert last sexp in REPL and eval" (cider-insert-last-sexp-in-repl t)
:keys "\\[universal-argument] \\[cider-insert-last-sexp-in-repl]"]
["Insert top-level sexp in REPL" cider-insert-defun-in-repl]
["Insert region in REPL" cider-insert-region-in-repl]
["Insert ns form in REPL" cider-insert-ns-form-in-repl]
Expand Down
4 changes: 4 additions & 0 deletions doc/modules/ROOT/pages/usage/cider_mode.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ kbd:[C-c C-e]
| kbd:[C-c M-p]
| Load the form preceding point in the REPL buffer.

| `cider-insert-last-sexp-in-repl`
| kbd:[C-u C-c M-p]
| Load the form preceding point in the REPL buffer and eval.

| `cider-pprint-eval-last-sexp`
| kbd:[C-c C-v C-f e]
| Evaluate the form preceding point and pretty-print the result in a popup buffer. If invoked with a prefix argument, insert the result into the current buffer as a comment.
Expand Down

0 comments on commit 071cfb2

Please sign in to comment.