Skip to content

Commit

Permalink
Set local-buffer value for evil-shift-width
Browse files Browse the repository at this point in the history
  • Loading branch information
fredericgiquel authored and condy0919 committed Jul 24, 2023
1 parent 1f34f5e commit 163171c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion modes/lua-mode/evil-collection-lua-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -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 ()
Expand Down
2 changes: 1 addition & 1 deletion modes/python/evil-collection-python.el
Original file line number Diff line number Diff line change
Expand Up @@ -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 ()
Expand Down
2 changes: 1 addition & 1 deletion modes/ruby-mode/evil-collection-ruby-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -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 ()
Expand Down
2 changes: 1 addition & 1 deletion modes/sh-script/evil-collection-sh-script.el
Original file line number Diff line number Diff line change
Expand Up @@ -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 ()
Expand Down
2 changes: 1 addition & 1 deletion modes/typescript-mode/evil-collection-typescript-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -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 ()
Expand Down
2 changes: 1 addition & 1 deletion modes/yaml-mode/evil-collection-yaml-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -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 ()
Expand Down

0 comments on commit 163171c

Please sign in to comment.