Variable: whitespace-space-regexp
whitespace-space-regexp is a customizable variable defined in
whitespace.el.gz.
Value
"\\( +\\)"
Documentation
Regexp to match SPACE characters that should be visualized.
The SPACE characters are highlighted using the whitespace-space face.
By default only ASCII SPACE character is visualized, but if you
are typing in some non-Latin language, there may be other
characters besides " " that should be considered SPACE.
Here are some examples:
"\\\\(^ +\\\\)" visualize only leading SPACEs.
"\\\\( +$\\\\)" visualize only trailing SPACEs.
"\\\\(^ +\\\\| +$\\\\)" visualize leading and/or trailing SPACEs.
"\\t\\\\( +\\\\)\\t" visualize only SPACEs between TABs.
NOTE: Always enclose the elements to highlight in \\(...\\).
Use exactly one pair of enclosing \\( and \\).
This variable is used when whitespace-style includes spaces.
Source Code
;; Defined in /usr/src/emacs/lisp/whitespace.el.gz
(defcustom whitespace-space-regexp "\\( +\\)"
"Regexp to match SPACE characters that should be visualized.
The SPACE characters are highlighted using the `whitespace-space' face.
By default only ASCII SPACE character is visualized, but if you
are typing in some non-Latin language, there may be other
characters besides \" \" that should be considered SPACE.
Here are some examples:
\"\\\\(^ +\\\\)\" visualize only leading SPACEs.
\"\\\\( +$\\\\)\" visualize only trailing SPACEs.
\"\\\\(^ +\\\\| +$\\\\)\" \
visualize leading and/or trailing SPACEs.
\"\\t\\\\( +\\\\)\\t\" visualize only SPACEs between TABs.
NOTE: Always enclose the elements to highlight in \\\\(...\\\\).
Use exactly one pair of enclosing \\\\( and \\\\).
This variable is used when `whitespace-style' includes `spaces'."
:type '(regexp :tag "SPACE Chars")
:group 'whitespace)