Variable: cider-save-file-on-load

cider-save-file-on-load is a customizable variable defined in cider-eval.el.

Value

prompt

Documentation

Controls whether to prompt to save the file when loading a buffer.

If nil, files are not saved. If prompt, the user is prompted to save the file if it's been modified. If t, save the file without confirmation.

This variable was added, or its default value changed, in cider version 0.6.0.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-eval.el
(defcustom cider-save-file-on-load 'prompt
  "Controls whether to prompt to save the file when loading a buffer.
If nil, files are not saved.
If `prompt', the user is prompted to save the file if it's been modified.
If t, save the file without confirmation."
  :type '(choice (const :tag "Prompt to save the file if it's been modified" prompt)
                 (const :tag "Don't save the file" nil)
                 (const :tag "Save the file without confirmation" t))
  :group 'cider
  :package-version '(cider . "0.6.0"))