Variable: treemacs-follow-mode-hook
treemacs-follow-mode-hook is a customizable variable defined in
treemacs-follow-mode.el.
Value
nil
Documentation
Hook run after entering or leaving treemacs-follow-mode(var)/treemacs-follow-mode(fun).
No problems result if this variable is not bound.
add-hook automatically binds it. (This is true for all hook variables.)
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)))