Variable: treemacs-workspace-switch-cleanup
treemacs-workspace-switch-cleanup is a customizable variable defined
in treemacs-customization.el.
Value
nil
Documentation
Indicates which, if any, buffers should be deleted on a workspace switch.
Only applies when interactively calling treemacs-switch-workspace.
Valid values are
- nil to do nothing
- files to delete buffers visiting files
- all to delete all buffers other than treemacs and the scratch buffer
In any case treemacs itself and the scratch and messages buffer will be unaffected.
Source Code
;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-customization.el
(defcustom treemacs-workspace-switch-cleanup nil
"Indicates which, if any, buffers should be deleted on a workspace switch.
Only applies when interactively calling `treemacs-switch-workspace'.
Valid values are
- nil to do nothing
- `files' to delete buffers visiting files
- `all' to delete all buffers other than treemacs and the scratch buffer
In any case treemacs itself and the scratch and messages buffer will be
unaffected."
:type '(choice (const :tag "All Buffers" all)
(const :tag "Only File Buffers" files)
(const :tag "None" nil))
:group 'treemacs)