Skip to content

Commit

Permalink
[Docs] describe cider-eval-result-duration
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhan0 committed Feb 11, 2022
1 parent 5bd0c84 commit 77b3e01
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions doc/modules/ROOT/pages/usage/code_evaluation.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,24 @@ Note that this also affects the position of debugger overlays.
(setq cider-result-overlay-position 'at-point)
----


You can also customize how overlays are persisted using the variable
`cider-eval-result-duration`.

By default, its value is `'command`, meaning that result overlays disappear
after the next user-executed command, such as moving the point or scrolling.

Setting the variable to a number reprsents the duration in seconds until
overlays are removed, while setting it to `'change' persists overlays until the
next change to the buffer contents.


[source,lisp]
----
(setq cider-eval-result-duration 5.0)
(setq cider-eval-result-duration 'change)
----

=== Auto-Save Clojure Buffers on Load

Normally, CIDER prompts you to save a modified Clojure buffer when you
Expand Down

0 comments on commit 77b3e01

Please sign in to comment.