Variable: dirvish-reuse-session

dirvish-reuse-session is a customizable variable defined in dirvish.el.

Value

open

Documentation

Whether to keep the latest session index buffer for later reuse.

The valid values are:
- t: keep index buffer on both dirvish-quit and file open
- resume: keep and resume to the index when using dirvish w/o specify a path
- quit: only keep index after dirvish-quit
- open: only keep index after open a file
- nil: never keep any index buffers on dirvish-quit or open files

Source Code

;; Defined in /nix/store/1gijwny2yx4fggrsb9l110h1ybs1gdk5-emacs-packages-deps/share/emacs/site-lisp/elpa/dirvish-20260725.1520/dirvish.el
(defcustom dirvish-reuse-session 'open
  "Whether to keep the latest session index buffer for later reuse.
The valid values are:
- t:      keep index buffer on both `dirvish-quit' and file open
- `resume': keep and resume to the index when using `dirvish' w/o specify a path
- `quit':   only keep index after `dirvish-quit'
- `open':   only keep index after open a file
- nil:    never keep any index buffers on `dirvish-quit' or open files"
  :group 'dirvish :type '(choice (const :tag "keep index buffer on both `dirvish-quit' and file open" t)
                                 (const :tag "keep and resume to the index when using `dirvish' w/o specify a path" resume)
                                 (const :tag "only keep index after `dirvish-quit'" quit)
                                 (const :tag "only keep index after open a file" open)
                                 (const :tag "never keep any index buffer" nil)))