Set local-buffer value for evil-shift-width

This commit is contained in:
Frédéric Giquel 2023-07-24 11:20:30 +02:00 committed by Youmu
parent 1f34f5ec4e
commit 163171c7ca
6 changed files with 6 additions and 6 deletions

View File

@ -35,7 +35,7 @@
(defun evil-collection-lua-mode-set-evil-shift-width ()
"Set `evil-shift-width' according to `lua-indent-level'."
(setq evil-shift-width lua-indent-level))
(setq-local evil-shift-width lua-indent-level))
;;;###autoload
(defun evil-collection-lua-mode-setup ()

View File

@ -36,7 +36,7 @@
(defun evil-collection-python-set-evil-shift-width ()
"Set `evil-shift-width' according to `python-indent-offset'."
(setq evil-shift-width python-indent-offset))
(setq-local evil-shift-width python-indent-offset))
;;;###autoload
(defun evil-collection-python-setup ()

View File

@ -34,7 +34,7 @@
(defun evil-collection-ruby-mode-set-evil-shift-width ()
"Set `evil-shift-width' according to `ruby-indent-level'."
(setq evil-shift-width ruby-indent-level))
(setq-local evil-shift-width ruby-indent-level))
;;;###autoload
(defun evil-collection-ruby-mode-setup ()

View File

@ -34,7 +34,7 @@
(defun evil-collection-sh-script-set-evil-shift-width ()
"Set `evil-shift-width' according to `sh-basic-offset'."
(setq evil-shift-width sh-basic-offset))
(setq-local evil-shift-width sh-basic-offset))
;;;###autoload
(defun evil-collection-sh-script-setup ()

View File

@ -34,7 +34,7 @@
(defun evil-collection-typescript-mode-set-evil-shift-width ()
"Set `evil-shift-width' according to `typescript-indent-level'."
(setq evil-shift-width typescript-indent-level))
(setq-local evil-shift-width typescript-indent-level))
;;;###autoload
(defun evil-collection-typescript-mode-setup ()

View File

@ -31,7 +31,7 @@
(defvar yaml-indent-offset)
(defun evil-collection-yaml-mode-set-evil-shift-width ()
"Set `evil-shift-width' according to `yaml-indent-offset'."
(setq evil-shift-width yaml-indent-offset))
(setq-local evil-shift-width yaml-indent-offset))
;;;###autoload
(defun evil-collection-yaml-mode-setup ()