Fix editorconfig usage in doom/set-indent-width #1561
This commit is contained in:
parent
18758c3926
commit
f3fa1b0324
1 changed files with 1 additions and 3 deletions
|
@ -181,9 +181,7 @@ Respects `require-final-newline'."
|
||||||
(when (boundp 'evil-shift-width)
|
(when (boundp 'evil-shift-width)
|
||||||
(setq evil-shift-width width))
|
(setq evil-shift-width width))
|
||||||
(cond ((require 'editorconfig nil t)
|
(cond ((require 'editorconfig nil t)
|
||||||
(dolist (var (cdr (assq major-mode editorconfig-indentation-alist)))
|
(editorconfig-set-indentation nil width))
|
||||||
(doom-log "Updated %s = %d" var width)
|
|
||||||
(set var width)))
|
|
||||||
((require 'dtrt-indent nil t)
|
((require 'dtrt-indent nil t)
|
||||||
(when-let (var (nth 2 (assq major-mode dtrt-indent-hook-mapping-list)))
|
(when-let (var (nth 2 (assq major-mode dtrt-indent-hook-mapping-list)))
|
||||||
(doom-log "Updated %s = %d" var width)
|
(doom-log "Updated %s = %d" var width)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue