mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Only activate whitespace-mode in editable buffers
Otherwise whitespace-mode will disrupt fontification in special buffers, like helm and elfeed buffers. Indirectly addresses #1179
This commit is contained in:
@ -469,7 +469,9 @@ derived from `special-mode'."
|
||||
(unless (or (bound-and-true-p global-whitespace-mode)
|
||||
(bound-and-true-p whitespace-mode)
|
||||
(eq major-mode 'fundamental-mode)
|
||||
(derived-mode-p 'special-mode))
|
||||
(eq (get major-mode 'mode-class) 'special)
|
||||
(derived-mode-p 'special-mode)
|
||||
buffer-read-only)
|
||||
(require 'whitespace)
|
||||
(set (make-local-variable 'whitespace-style)
|
||||
(if (bound-and-true-p whitespace-newline-mode)
|
||||
|
Reference in New Issue
Block a user