mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
dtrt-indent-run-after-smie = t
Fix dtrt not updating indent variables in modes that use SMIE (like sh-mode).
This commit is contained in:
@ -224,6 +224,8 @@ savehist file."
|
|||||||
(add-hook! '(change-major-mode-after-body-hook read-only-mode-hook)
|
(add-hook! '(change-major-mode-after-body-hook read-only-mode-hook)
|
||||||
#'doom|detect-indentation)
|
#'doom|detect-indentation)
|
||||||
:config
|
:config
|
||||||
|
(setq dtrt-indent-run-after-smie t)
|
||||||
|
|
||||||
;; always keep tab-width up-to-date
|
;; always keep tab-width up-to-date
|
||||||
(push '(t tab-width) dtrt-indent-hook-generic-mapping-list)
|
(push '(t tab-width) dtrt-indent-hook-generic-mapping-list)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user