Variable: cider-repl-history-quit-action
cider-repl-history-quit-action is a customizable variable defined in
cider-repl-history.el.
Value
quit-window
Documentation
What action to take when cider-repl-history-quit is called.
If bury-buffer, then simply bury the *cider-repl-history* buffer, but keep
the window.
If bury-and-delete-window, then bury the buffer, and (if there is
more than one window) delete the window.
If delete-and-restore, then restore the window configuration to what it was
before cider-repl-history was called, and kill the *cider-repl-history*
buffer.
If quit-window, then restore the window configuration to what
it was before cider-repl-history was called, and bury *cider-repl-history*.
This is the default.
If kill-and-delete-window, then kill the *cider-repl-history* buffer, and
delete the window on close.
Otherwise, it should be a function to call.
This variable was added, or its default value changed, in cider version 0.15.0.
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-repl-history.el
(defcustom cider-repl-history-quit-action 'quit-window
"What action to take when `cider-repl-history-quit' is called.
If `bury-buffer', then simply bury the *cider-repl-history* buffer, but keep
the window.
If `bury-and-delete-window', then bury the buffer, and (if there is
more than one window) delete the window.
If `delete-and-restore', then restore the window configuration to what it was
before `cider-repl-history' was called, and kill the *cider-repl-history*
buffer.
If `quit-window', then restore the window configuration to what
it was before `cider-repl-history' was called, and bury *cider-repl-history*.
This is the default.
If `kill-and-delete-window', then kill the *cider-repl-history* buffer, and
delete the window on close.
Otherwise, it should be a function to call."
;; Note, if you use one of the non-"delete" options, after you "quit",
;; the *cider-repl-history* buffer is still available. If you are using
;; `cider-repl-history-show-preview', and you switch to *cider-repl-history* (i.e.,
;; with C-x b), it will not give the preview unless and until you "update"
;; the *cider-repl-history* buffer.
;;
;; This really should not be an issue, because there's no reason to "switch"
;; back to the buffer. If you want to get it back, you can just do C-c M-p
;; from the REPL buffer.
;; If you get in this situation and find it annoying, you can either disable
;; the preview, or set `cider-repl-history-quit-action' to 'delete-and-restore.
;; Then you will simply not have the *cider-repl-history* buffer after you quit,
;; and it won't be an issue.
:type '(choice (const :tag "Bury buffer"
:value bury-buffer)
(const :tag "Bury buffer and delete window"
:value bury-and-delete-window)
(const :tag "Delete window"
:value delete-and-restore)
(const :tag "Save and restore"
:value quit-window)
(const :tag "Kill buffer and delete window"
:value kill-and-delete-window)
function)
:package-version '(cider . "0.15.0"))