When I run
(setq-default show-trailing-whitespace t)
on startup, the Echo Area is affected. I can usually turn this off with hooks, e.g.
(add-hook 'minibuffer-setup-hook
(lambda () (setq show-trailing-whitespace nil)))
(add-hook 'messages-buffer-mode-hook
(lambda () (setq show-trailing-whitespace nil)))
However, I can't seem to find a suitable hook in this case. I'm used to inspecting modes of a buffer with C-h m
, but the Echo Area disappears when clicked with a mouse or typing resumes.
The only Echo Area hook I can find mention of doesn't seem to do the trick:
(add-hook 'echo-area-clear-hook
(lambda () (setq show-trailing-whitespace nil)))
Defaulting show-trailing-whitespace
to nil
does turn off trailing whitespace showing in the Echo Area, but would necessitate manual enumeration of all modes in which to turn it on.
How can one disable show-trailing-whitespace in the Echo Area if the setting is defaulted to true?
C-x b *Echo Area 0*
(note that there is a space before the initial asterisk in the name of these buffers). And you can doC-h m
on that, but I didn't see anything that could be used to override the customization.