Fix indentation highlights in built-in libraries

Doom highlights incorrect indentation (i.e. tabs if indent-tabs-mode =
nil, spaces if indent-tabs-mode = t). This used to be disabled in
read-only buffers (e.g. built-in libraries), making style conflicts hard
to see. No more! Now you can see the mess for yourself!
This commit is contained in:
Henrik Lissner 2020-08-02 22:47:20 -04:00
parent a9d36ddcaf
commit 1406a45750
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -139,7 +139,6 @@ spaces at the beginnings of lines if the usual indentation is with tabs.
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
(bound-and-true-p global-whitespace-mode)
(null buffer-file-name))
(require 'whitespace)