Skip to content

Commit 5751155

Browse files
committed
Move C-c C-p to the basic eval commands
Seems this one is super popular with our users.
1 parent 975b193 commit 5751155

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

doc/modules/ROOT/pages/usage/code_evaluation.adoc

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ Typically this type of evaluation commands would provide you with dual feedback
5555
you'd see the results in both the Emacs minibuffer and in an inline overlay in
5656
the source buffer.
5757

58+
In case the result of the evaluation is big (e.g. a map with dozens of keys) it might be best
59+
to display it in a dedicated buffer. You can do this with
60+
`cider-pprint-eval-last-sexp` (kbd:[C-c C-p]). As a bonus -
61+
the result will be pretty-printed in the result buffer.
62+
5863
== Exotic Evaluation Commands
5964

6065
NOTE: WIP
@@ -67,10 +72,10 @@ This section will briefly go over some of them.
6772
Broadly speaking the exotic evaluation commands can be grouped in the following
6873
categories:
6974

70-
- commands that pretty-print the result (e.g. `cider-pprint-eval-last-sexp`)
75+
- commands that are a variation of some basic commands (e.g. `cider-eval-list-at-point` and `cider-eval-sexp-at-point`)
7176
- commands that insert the result in the current buffer (e.g. `cider-eval-last-sexp-and-replace`)
7277
- commands that evaluate an expression in a different context (e.g. with user-supplied bindings)
73-
- commands that are a variation of some basic commands (e.g. `cider-eval-list-at-point` and `cider-eval-sexp-at-point`)
78+
- commands that evaluate some particular part of a buffer (e.g. `cider-eval-ns-form`)
7479

7580
Most of the exotic evaluation commands don't have "top-level" keybindings
7681
and should be accessed via CIDER's evaluation commands keymap (`cider-eval-commands-map`), meaning that they share the standard prefix `C-c C-v`. On top of this - several

0 commit comments

Comments
 (0)