From 2d6bef33d3bd0f158b5c1149b89010e25e47c700 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 26 May 2018 03:06:45 +0200 Subject: [PATCH] Disable doom|detect-indentation in fundamental or special modes This should fix #607, which is caused by whitespace-mode messing up the overlays/text properties in the mu4e sidebar. --- core/core-editor.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/core-editor.el b/core/core-editor.el index cb9924948..cbbe3d437 100644 --- a/core/core-editor.el +++ b/core/core-editor.el @@ -184,7 +184,9 @@ fundamental-mode) for performance sake." (setq dtrt-indent-verbosity (if doom-debug-mode 2 0)) (defun doom|detect-indentation () - (unless (or doom-inhibit-indent-detection (eq major-mode 'fundamental-mode)) + (unless (or doom-inhibit-indent-detection + (eq major-mode 'fundamental-mode) + (not (derived-mode-p 'special-mode))) (dtrt-indent-mode +1))) (unless noninteractive (add-hook 'after-change-major-mode-hook #'doom|detect-indentation)))