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.
This commit is contained in:
Henrik Lissner 2018-05-26 03:06:45 +02:00
parent 9febfb0477
commit 2d6bef33d3
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

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