Variable: treemacs-project-follow-cleanup

treemacs-project-follow-cleanup is a customizable variable defined in treemacs-customization.el.

Value

nil

Documentation

When non-nil treemacs-follow-mode(var)/treemacs-follow-mode(fun) will close projects it is leaving.

This means that treemacs will make sure that only the currently followed project is expanded while all others will remain collapsed.

Setting this to t might lead to noticeable slowdowns, at least when treemacs-git-mode(var)/treemacs-git-mode(fun) is enabled, since constantly expanding an entire project is fairly expensive.

Source Code

;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-customization.el
(defcustom treemacs-project-follow-cleanup nil
  "When non-nil `treemacs-follow-mode' will close projects it is leaving.
This means that treemacs will make sure that only the currently followed project
is expanded while all others will remain collapsed.

Setting this to t might lead to noticeable slowdowns, at least when
`treemacs-git-mode' is enabled, since constantly expanding an entire project is
fairly expensive."
  :type 'boolean
  :group 'treemacs-follow)