The *real* fix for whitespace-mode interfering with the mu4e sidebar #607

This commit is contained in:
Henrik Lissner 2018-05-26 03:09:53 +02:00
parent 2d6bef33d3
commit 1aec48a848
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -313,7 +313,9 @@ DEFAULT is non-nil, set the default mode-line for all buffers."
(defun doom|show-whitespace-maybe ()
"Show whitespace-mode when file has an `indent-tabs-mode' that is different
from the default."
(unless (eq indent-tabs-mode (default-value 'indent-tabs-mode))
(unless (or (eq indent-tabs-mode (default-value 'indent-tabs-mode))
(eq major-mode fundamental-mode)
(derived-mode-p 'special-mode))
(require 'whitespace)
(set (make-local-variable 'whitespace-style)
(if (or (bound-and-true-p whitespace-mode)