Variable: global-hl-line-buffers

global-hl-line-buffers is a customizable variable defined in hl-line.el.gz.

Value

(not
 (or (lambda (b) (buffer-local-value 'cursor-face-highlight-mode b))
     (lambda (b) (string-match-p "\\` " (buffer-name b))) minibufferp))

Documentation

Whether the Global HL-Line mode should be enabled in a buffer.

The predicate is passed as argument to buffer-match-p, which see. By default, this mode is disabled in the minibuffer and in buffers like the completions buffer that enable cursor-face-highlight-mode(var)/cursor-face-highlight-mode(fun).

This variable was added, or its default value changed, in Emacs 31.1.

Probably introduced at or before Emacs version 31.1.

Source Code

;; Defined in /usr/src/emacs/lisp/hl-line.el.gz
(defcustom global-hl-line-buffers
  '(not (or (lambda (b) (buffer-local-value 'cursor-face-highlight-mode b))
            (lambda (b) (string-match-p "\\` " (buffer-name b)))
            minibufferp))
  "Whether the Global HL-Line mode should be enabled in a buffer.
The predicate is passed as argument to `buffer-match-p', which see.
By default, this mode is disabled in the minibuffer and in buffers
like the completions buffer that enable `cursor-face-highlight-mode'."
  :type '(buffer-predicate :tag "Predicate for `buffer-match-p'")
  :version "31.1")