Set local-buffer value for evil-shift-width
This commit is contained in:
parent
1f34f5ec4e
commit
163171c7ca
|
@ -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 ()
|
||||
|
|
|
@ -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 ()
|
||||
|
|
|
@ -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 ()
|
||||
|
|
|
@ -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 ()
|
||||
|
|
|
@ -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 ()
|
||||
|
|
|
@ -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 ()
|
||||
|
|
Loading…
Reference in New Issue