Merge pull request #1066 from andresilva/fix-highlight-non-default-indentation

Fix highlight-non-default-indentation
This commit is contained in:
Henrik Lissner 2018-12-27 02:00:46 -05:00 committed by GitHub
commit f2d48a1764
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -446,9 +446,9 @@ instead). Meant for `kill-buffer-query-functions'."
(set (make-local-variable 'whitespace-style)
(if (or (bound-and-true-p whitespace-mode)
(bound-and-true-p whitespace-newline-mode))
(cl-union (if indent-tabs-mode '(tabs tab-mark) '(spaces space-mark))
(cl-union (if indent-tabs-mode '(spaces space-mark) '(tabs tab-mark))
whitespace-style)
`(face ,@(if indent-tabs-mode '(tabs tab-mark) '(spaces space-mark))
`(face ,@(if indent-tabs-mode '(spaces space-mark) '(tabs tab-mark))
trailing-lines tail)))
(whitespace-mode +1)))