I'm using global-whitespace-mode
with a particular whitespace-style
as a default for all modes. How can I disable whitespace-mode
completely for a single mode, eg. incoming email?
I tried the following, but I still get all the default whitespace styles when looking at incoming email.
(global-whitespace-mode)
(setq whitespace-style '(face trailing lines tabs big-indent))
(add-hook 'rmail-mode-hook '(whitespace-mode 0))
(setq whitespace-global-modes '(prog-mode))
did't work. – forthrin Mar 26 '18 at 13:03derived-mode-p
so you can't useprog-mode
here (unless you are actually editing a buffer with major modeprog-mode
, which in practice you wouldn't ever do). You have to list individual major modes. But surely (based on your question) you want to use the syntax shown in that duplicate:'(not rmail-mode)
– phils Mar 26 '18 at 13:19