Variable: whitespace-global-modes
whitespace-global-modes is a customizable variable defined in
whitespace.el.gz.
Value
t
Documentation
Modes for which global whitespace-mode(var)/whitespace-mode(fun) is automagically turned on.
Global whitespace-mode(var)/whitespace-mode(fun) is controlled by the command
global-whitespace-mode(var)/global-whitespace-mode(fun).
If nil, means no modes have whitespace-mode(var)/whitespace-mode(fun) automatically
turned on.
If t, all modes that support whitespace-mode(var)/whitespace-mode(fun) have it
automatically turned on.
Else it should be a list of major-mode symbol names for which
whitespace-mode(var)/whitespace-mode(fun) should be automatically turned on. The sense
of the list is negated if it begins with not. For example:
(c-mode c++-mode)
means that whitespace-mode(var)/whitespace-mode(fun) is turned on for buffers in C and
C++ modes only.
Probably introduced at or before Emacs version 28.1.
Source Code
;; Defined in /usr/src/emacs/lisp/whitespace.el.gz
(defcustom whitespace-global-modes t
"Modes for which global `whitespace-mode' is automagically turned on.
Global `whitespace-mode' is controlled by the command
`global-whitespace-mode'.
If nil, means no modes have `whitespace-mode' automatically
turned on.
If t, all modes that support `whitespace-mode' have it
automatically turned on.
Else it should be a list of `major-mode' symbol names for which
`whitespace-mode' should be automatically turned on. The sense
of the list is negated if it begins with `not'. For example:
(c-mode c++-mode)
means that `whitespace-mode' is turned on for buffers in C and
C++ modes only."
:type '(choice :tag "Global Modes"
(const :tag "None" nil)
(const :tag "All" t)
(set :menu-tag "Mode Specific" :tag "Modes"
:value (not)
(const :tag "Except" not)
(repeat :inline t
(symbol :tag "Mode"))))
:group 'whitespace)