Merge pull request #2915 from Keating950/develop
Respect global whitespace mode config if set
This commit is contained in:
commit
8ba2c8e4ad
1 changed files with 3 additions and 2 deletions
|
@ -138,10 +138,11 @@ size.")
|
|||
e.g. If you indent with spaces by default, tabs will be highlighted. If you
|
||||
indent with tabs, spaces at BOL are highlighted.
|
||||
|
||||
Does nothing if `whitespace-mode' is already active or the current buffer is
|
||||
read-only or not file-visiting."
|
||||
Does nothing if `whitespace-mode' or 'global-whitespace-mode' is already
|
||||
active or if the current buffer is read-only or not file-visiting."
|
||||
(unless (or (eq major-mode 'fundamental-mode)
|
||||
buffer-read-only
|
||||
global-whitespace-mode
|
||||
(null buffer-file-name))
|
||||
(require 'whitespace)
|
||||
(set (make-local-variable 'whitespace-style)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue