Function: treemacs-fringe-indicator-mode

treemacs-fringe-indicator-mode is an interactive and byte-compiled function defined in treemacs-fringe-indicator.el.

Signature

(treemacs-fringe-indicator-mode &optional ARG)

Documentation

Toggle treemacs-fringe-indicator-mode(var)/treemacs-fringe-indicator-mode(fun).

When enabled, a visual indicator in the fringe will be displayed to highlight the selected line in addition to hl-line-mode(var)/hl-line-mode(fun). Useful if hl-line-mode(var)/hl-line-mode(fun) doesn't stand out enough with your colour theme.

Can be called with one of two arguments:

 - always will always show the fringe indicator.
 - only-when-focused will only show the fringe indicator when the treemacs
   window is focused (only possible with Emacs 27+).

For backward compatibility just enabling this mode without an explicit argument has the same effect as using always.

This is a global minor mode. If called interactively, toggle the Treemacs-Fringe-Indicator 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-fringe-indicator-mode)'.

The mode's hook is called both when the mode is enabled and when it is disabled.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-fringe-indicator.el
(define-minor-mode treemacs-fringe-indicator-mode
  "Toggle `treemacs-fringe-indicator-mode'.
When enabled, a visual indicator in the fringe will be displayed to highlight
the selected line in addition to `hl-line-mode'.  Useful if `hl-line-mode'
doesn't stand out enough with your colour theme.

Can be called with one of two arguments:

 - `always' will always show the fringe indicator.
 - `only-when-focused' will only show the fringe indicator when the treemacs
   window is focused (only possible with Emacs 27+).

For backward compatibility just enabling this mode without an explicit argument
has the same effect as using `always'."
  :init-value nil
  :global t
  :lighter nil
  :group 'treemacs
  (if treemacs-fringe-indicator-mode
      (progn
        (setf arg (or arg t))
        (if (memq arg '(always only-when-focused t))
            (treemacs--setup-fringe-indicator-mode arg)
          (call-interactively #'treemacs--setup-fringe-indicator-mode)))
    (treemacs--tear-down-fringe-indicator-mode)))