Function: treemacs-indicate-top-scroll-mode
treemacs-indicate-top-scroll-mode is an autoloaded, interactive and
byte-compiled function defined in treemacs-header-line.el.
Signature
(treemacs-indicate-top-scroll-mode &optional ARG)
Documentation
Minor mode which shows whether treemacs is scrolled all the way to the top.
This is a minor mode. If called interactively, toggle the
Treemacs-Indicate-Top-Scroll mode mode. If the prefix argument
is positive, enable the mode, and if it is zero or negative,
disable the mode.
If called from Lisp, toggle the mode if ARG is toggle. Enable
the mode if ARG is nil, omitted, or is a positive number.
Disable the mode if ARG is a negative number.
To check whether the minor mode is enabled in the current buffer,
evaluate (default-value \=treemacs-indicate-top-scroll-mode)'.
The mode's hook is called both when the mode is enabled and when it is disabled.
When this mode is enabled the header line of the treemacs window will display whether the window's first line is visible or not.
The strings used for the display are determined by
treemacs-header-scroll-indicators.
This mode makes use of treemacs-user-header-line-format - and thus
header-line-format - and is therefore incompatible with other modifications to
these options.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-header-line.el
;;;###autoload
(define-minor-mode treemacs-indicate-top-scroll-mode
"Minor mode which shows whether treemacs is scrolled all the way to the top.
When this mode is enabled the header line of the treemacs window will display
whether the window's first line is visible or not.
The strings used for the display are determined by
`treemacs-header-scroll-indicators'.
This mode makes use of `treemacs-user-header-line-format' - and thus
`header-line-format' - and is therefore incompatible with other modifications to
these options."
:init-value nil
:global t
:group 'treemacs
(setf treemacs-user-header-line-format
(when treemacs-indicate-top-scroll-mode
'("%e" (:eval (treemacs--header-top-scroll-indicator)))))
(treemacs-run-in-every-buffer
(setf header-line-format treemacs-user-header-line-format)))