Respect global whitespace mode config, if set
This commit is contained in:
parent
2a93ff6ad4
commit
3be5692c77
1 changed files with 1 additions and 0 deletions
|
@ -142,6 +142,7 @@ Does nothing if `whitespace-mode' is already active or the current buffer is
|
|||
read-only or not file-visiting."
|
||||
(unless (or (eq major-mode 'fundamental-mode)
|
||||
buffer-read-only
|
||||
(equal global-whitespace-mode t)
|
||||
(null buffer-file-name))
|
||||
(require 'whitespace)
|
||||
(set (make-local-variable 'whitespace-style)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue