Variable: treemacs-select-functions
treemacs-select-functions is a customizable variable defined in
treemacs-customization.el.
Value
nil
Documentation
Hooks to run when the treemacs window is selected.
The hook should accept one argument which is a symbol describing treemacs'
visibility before the select was invoked, as it would have been returned by
treemacs-current-visibility.
This hook only applies to commands like treemacs or treemacs-select-window,
not general window selection commands like other-window.
Aliases
treemacs-select-hook (obsolete since 2.9)
Source Code
;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-customization.el
(defcustom treemacs-select-functions nil
"Hooks to run when the treemacs window is selected.
The hook should accept one argument which is a symbol describing treemacs'
visibility before the select was invoked, as it would have been returned by
`treemacs-current-visibility'.
This hook only applies to commands like `treemacs' or `treemacs-select-window',
not general window selection commands like `other-window'."
:type 'hook
:group 'treemacs-hooks)