Variable: treemacs-follow-mode
treemacs-follow-mode is a customizable variable defined in
treemacs-follow-mode.el.
Value
t
Documentation
Non-nil if Treemacs-Follow mode is enabled.
See the treemacs-follow-mode(var)/treemacs-follow-mode(fun) command
for a description of this minor mode.
Setting this variable directly does not take effect;
either customize it (see the info node (emacs)Easy Customization)
or call the function treemacs-follow-mode(var)/treemacs-follow-mode(fun).
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-follow-mode.el
(define-minor-mode treemacs-follow-mode
"Toggle `treemacs-follow-mode'.
When enabled treemacs will keep track of and focus the currently selected
buffer's file. This only applies if the file is within the treemacs root
directory.
This functionality can also be manually invoked with `treemacs-find-file'."
:init-value nil
:global t
:lighter nil
:group 'treemacs
(if treemacs-follow-mode
(treemacs--setup-follow-mode)
(treemacs--tear-down-follow-mode)))