doom/set-indent-width: set standard-indent buffer-locally

This commit is contained in:
Henrik Lissner 2019-07-12 16:55:36 +02:00
parent fddef812ec
commit e6540b419b
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -176,8 +176,8 @@ Respects `require-final-newline'."
(list (if (integerp current-prefix-arg) (list (if (integerp current-prefix-arg)
current-prefix-arg current-prefix-arg
(read-number "New indent size: ")))) (read-number "New indent size: "))))
(setq tab-width width (setq tab-width width)
standard-indent width) (setq-local standard-indent width)
(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)