From 1406a45750940b221ec7c2a10f28b074eef4640e Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 2 Aug 2020 22:47:20 -0400 Subject: [PATCH] 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! --- core/core-ui.el | 1 - 1 file changed, 1 deletion(-) diff --git a/core/core-ui.el b/core/core-ui.el index 7ab7dbc4d..c5cd5427e 100644 --- a/core/core-ui.el +++ b/core/core-ui.el @@ -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)