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:
parent
9febfb0477
commit
2d6bef33d3
1 changed files with 3 additions and 1 deletions
|
@ -184,7 +184,9 @@ fundamental-mode) for performance sake."
|
||||||
(setq dtrt-indent-verbosity (if doom-debug-mode 2 0))
|
(setq dtrt-indent-verbosity (if doom-debug-mode 2 0))
|
||||||
|
|
||||||
(defun doom|detect-indentation ()
|
(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)))
|
(dtrt-indent-mode +1)))
|
||||||
(unless noninteractive
|
(unless noninteractive
|
||||||
(add-hook 'after-change-major-mode-hook #'doom|detect-indentation)))
|
(add-hook 'after-change-major-mode-hook #'doom|detect-indentation)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue