Skip to content

Commit d12269c

Browse files
committed
[Docs] Add a section on changing the evaluation output's destination
1 parent 5751155 commit d12269c

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,24 @@ prefix). By default the prefix is `=> `.
204204

205205
To remove the prefix altogether, just set it to the empty string (`""`).
206206

207+
=== Change the Output Destination
208+
209+
By default CIDER will display the output produced by some evaluation in the REPL buffer, but you can also funnel the output to a dedicated buffer. You can configure this behavior via `cider-interactive-eval-output-destination`.
210+
211+
[source,lisp]
212+
----
213+
(setq cider-interactive-eval-output-destination 'output-buffer)
214+
----
215+
216+
Additionally, there's the variable `cider-redirect-server-output-to-repl` that captures output that would normally end up in the `*nrepl-server*` buffer (provided it has been started via `cider-jack-in`) and redirects it to the REPL buffer. You can disable this redirection like this:
217+
218+
[source,lisp]
219+
----
220+
(setq cider-redirect-server-output-to-repl nil)
221+
----
222+
223+
NOTE: The redirection functionality is implemented in `cider-nrepl` as nREPL middleware. If you're using CIDER without `cider-nrepl` no output redirection is going to take place.
224+
207225
== Keybindings
208226

209227
You might have noticed that CIDER typically has 2-3 different keybindings for

0 commit comments

Comments
 (0)