Variable: indent-bars-highlight-current-depth
indent-bars-highlight-current-depth is a customizable variable defined
in indent-bars.el.
Value
(:pattern ".")
Documentation
Current indentation depth bar highlight configuration.
Use this to configure optional highlighting of the bar at the current line's indentation depth level.
Format:
nil | (:color :face :face-bg :background :blend :palette
:width :pad :pattern :zigzag)
If nil, no highlighting will be applied to bars at the current
depth of the line at point. Otherwise, a plist describes what
highlighting to apply, which can include changes to color and/or
bar pattern. At least one of :blend, :color, :palette, :face,
:width, :pad, :pattern, or :zigzag must be set and non-nil for
this setting to take effect.
By default, the highlighted bar's color will be the same as the
underlying bar color. With PALETTE, COLOR or FACE set, all bars
at the current depth will be highlighted in the appropriate
color, either from an explicit COLOR, a PALETTE list (see
indent-bars-color-by-depth), or, if FACE is set, FACE's
foreground or background color (the latter if FACE-BG is
non-nil). If PALETTE is provided, it overrides any other
foreground color setting for the current depth highlight bar. If
BACKGROUND is set to a color, this will be used for the
background color of the current depth bar.
If BLEND is provided, it is a blend fraction between 0 and 1 for
blending the specified highlight color with the
existing (depth-based or main) bar color; see indent-bars-color
for its meaning. BLEND=1 indicates using the full, unblended
highlight color (and is the same as omitting BLEND).
As a special case, if BLEND is provided, but neither COLOR nor
FACE is, BLEND is used as a (presumably distinct) blend factor
between the usual color for that bar and the frame background.
The original colors are specified in indent-bars-color-by-depth
or indent-bars-color. In this manner the current-depth
highlight can be made a more (or less) prominent version of the
default coloring, just by setting BLEND.
If any of WIDTH, PAD, PATTERN, or ZIGZAG are set, the stipple bar
pattern at the current level will be altered as well. Note that
indent-bars-width-frac, indent-bars-pad-frac,
indent-bars-pattern, and indent-bars-zigzag will be used as
defaults for any missing values; see these variables.
Note: on terminal, or if indent-bars-prefer-character is
non-nil, any stipple appearance parameters will be ignored.
Source Code
;; Defined in /nix/store/zkcdcnmcj3605fj09x584bf58d85brax-emacs-packages-deps/share/emacs/site-lisp/elpa/indent-bars-1.0.1/indent-bars.el
;;;;; Depth Highlighting
(defcustom indent-bars-highlight-current-depth
'(:pattern ".") ; solid bar, no color change
"Current indentation depth bar highlight configuration.
Use this to configure optional highlighting of the bar at the
current line's indentation depth level.
Format:
nil | (:color :face :face-bg :background :blend :palette
:width :pad :pattern :zigzag)
If nil, no highlighting will be applied to bars at the current
depth of the line at point. Otherwise, a plist describes what
highlighting to apply, which can include changes to color and/or
bar pattern. At least one of :blend, :color, :palette, :face,
:width, :pad, :pattern, or :zigzag must be set and non-nil for
this setting to take effect.
By default, the highlighted bar's color will be the same as the
underlying bar color. With PALETTE, COLOR or FACE set, all bars
at the current depth will be highlighted in the appropriate
color, either from an explicit COLOR, a PALETTE list (see
`indent-bars-color-by-depth'), or, if FACE is set, FACE's
foreground or background color (the latter if FACE-BG is
non-nil). If PALETTE is provided, it overrides any other
foreground color setting for the current depth highlight bar. If
BACKGROUND is set to a color, this will be used for the
background color of the current depth bar.
If BLEND is provided, it is a blend fraction between 0 and 1 for
blending the specified highlight color with the
existing (depth-based or main) bar color; see `indent-bars-color'
for its meaning. BLEND=1 indicates using the full, unblended
highlight color (and is the same as omitting BLEND).
As a special case, if BLEND is provided, but neither COLOR nor
FACE is, BLEND is used as a (presumably distinct) blend factor
between the usual color for that bar and the frame background.
The original colors are specified in `indent-bars-color-by-depth'
or `indent-bars-color'. In this manner the current-depth
highlight can be made a more (or less) prominent version of the
default coloring, just by setting BLEND.
If any of WIDTH, PAD, PATTERN, or ZIGZAG are set, the stipple bar
pattern at the current level will be altered as well. Note that
`indent-bars-width-frac', `indent-bars-pad-frac',
`indent-bars-pattern', and `indent-bars-zigzag' will be used as
defaults for any missing values; see these variables.
Note: on terminal, or if `indent-bars-prefer-character' is
non-nil, any stipple appearance parameters will be ignored."
:type '(choice
:tag "Highlighting Options"
(const :tag "No Current Highlighting" :value nil)
(plist :tag "Highlight Current Depth"
:options
((:color (color :tag "Highlight Color"))
(:face (face :tag "Color from Face"))
(:face-bg (boolean :tag "Use Face's Background Color"))
(:background (color :tag "Background Color of Current Bar"))
(:blend (float :tag "Blend Fraction into Existing Color")
:value 0.5
:match (lambda (_ val) (and (<= val 1) (>= val 0)))
:type-error "Factor must be between 0 and 1")
(:palette
(repeat :tag "Explicit Color/Face List"
(choice (color :tag "Color")
(face :tag "Foreground from Face")
(cons :tag "Background from Face"
:format "Background from %v"
face
(const :format "\n" :value bg)))))
(:width (float :tag "Bar Width"))
(:pad (float :tag "Bar Padding (from left)"))
(:pattern (string :tag "Fill Pattern"))
(:zigzag (float :tag "Zig-Zag")))))
:group 'indent-bars-style
:set #'indent-bars--custom-set
:initialize #'custom-initialize-default)