fix highlight-non-default-indentation

This commit is contained in:
André Silva 2018-12-26 11:54:18 +00:00
parent b88c712715
commit cf5d7e3ba8

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)))