mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
fix(lib): update doom/set-indent-width for dtrt-indent
dtrt-indent-hook-mapping-list entries now accept lists of variables. This updates doom/set-indent-width to accommodate that. Ref: jscheid/dtrt-indent@1986ad4e60
This commit is contained in:
@ -315,9 +315,10 @@ editorconfig or dtrt-indent installed."
|
|||||||
(let (editorconfig-lisp-use-default-indent)
|
(let (editorconfig-lisp-use-default-indent)
|
||||||
(editorconfig-set-indentation nil width)))
|
(editorconfig-set-indentation nil 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 (vars (nth 2 (assq major-mode dtrt-indent-hook-mapping-list)))
|
||||||
(doom-log "Updated %s = %d" var width)
|
(dolist (var (doom-enlist var))
|
||||||
(set var width))))
|
(doom-log "Updated %s = %d" var width)
|
||||||
|
(set var width)))))
|
||||||
(message "Changed indentation to %d" width))
|
(message "Changed indentation to %d" width))
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user