diff options
author | Neil Okamoto <neil.okamoto@gmail.com> | 2017-11-10 13:53:53 -0800 |
---|---|---|
committer | Bozhidar Batsov <bozhidar.batsov@gmail.com> | 2017-12-10 00:02:18 +0000 |
commit | 452410085b59dc6724f98ffbfbde938b88d48e3a (patch) | |
tree | 328db2bee5c83c91bca6e2a813467666e5d24eb5 /doc | |
parent | 17a392c1d6716476c5b36b18cbcbb4620a861c2b (diff) |
[#2111] implement cider-pprint-eval-{last-sexp,defun}-to-comment
These functions have similar functionality to the other pprint interactions;
however now we can also insert the result of evaluation directly in the
current buffer.
The comment prefix(es) used in output is now user-configurable, and for
consistency, we also use same prefix in cider-eval-defun-to-comment.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/interactive_programming.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/interactive_programming.md b/doc/interactive_programming.md index d9716e32..815a6fd6 100644 --- a/doc/interactive_programming.md +++ b/doc/interactive_programming.md @@ -22,8 +22,8 @@ Here's a list of `cider-mode`'s keybindings: `cider-eval-last-sexp-and-replace` |<kbd>C-c C-v w</kbd> | Evaluate the form preceding point and replace it with its result. `cider-eval-last-sexp-to-repl` |<kbd>C-c M-e</kbd> | Evaluate the form preceding point and output it result to the REPL buffer. If invoked with a prefix argument, takes you to the REPL buffer after being invoked. `cider-insert-last-sexp-in-repl` |<kbd>C-c M-p</kbd> | Load the form preceding point in the REPL buffer. -`cider-pprint-eval-last-sexp` |<kbd>C-c C-p</kbd> | Evaluate the form preceding point and pretty-print the result in a popup buffer. -`cider-pprint-eval-defun-at-point` |<kbd>C-c C-f</kbd> | Evaluate the top level form under point and pretty-print the result in a popup buffer. +`cider-pprint-eval-last-sexp` |<kbd>C-c C-p</kbd> | 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. +`cider-pprint-eval-defun-at-point` |<kbd>C-c C-f</kbd> | Evaluate the top level form under 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. `cider-eval-defun-at-point` |<kbd>C-M-x</kbd> <br/> <kbd>C-c C-c</kbd> | Evaluate the top level form under point and display the result in the echo area. `cider-eval-sexp-at-point` |<kbd>C-c C-v v</kbd> | Evaluate the form around point. `cider-eval-defun-at-point` |<kbd>C-u C-M-x</kbd> <br/> <kbd>C-u C-c C-c</kbd> | Debug the top level form under point and walk through its evaluation |