Variable: whitespace-global-mode-buffers

whitespace-global-mode-buffers is a customizable variable defined in whitespace.el.gz.

Value

("\\`\\*scratch\\*\\'")

Documentation

Buffer name regexps where global whitespace-mode(var)/whitespace-mode(fun) can be auto-enabled.

The value is a list of regexps. Set this custom option when you need whitespace-mode(var)/whitespace-mode(fun) in special buffers like "*Org Src*".

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/whitespace.el.gz
(defcustom whitespace-global-mode-buffers (list (rx bos "*scratch*" eos))
  "Buffer name regexps where global `whitespace-mode' can be auto-enabled.
The value is a list of regexps.  Set this custom option when you need
`whitespace-mode' in special buffers like \"*Org Src*\"."
  :type '(repeat (regexp :tag "Regexp matching buffer name"))
  :version "31.1")