From 163171c7ca32c8e6d1ab5b833924bac78c21d36a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Giquel?= Date: Mon, 24 Jul 2023 11:20:30 +0200 Subject: [PATCH] Set local-buffer value for evil-shift-width --- modes/lua-mode/evil-collection-lua-mode.el | 2 +- modes/python/evil-collection-python.el | 2 +- modes/ruby-mode/evil-collection-ruby-mode.el | 2 +- modes/sh-script/evil-collection-sh-script.el | 2 +- modes/typescript-mode/evil-collection-typescript-mode.el | 2 +- modes/yaml-mode/evil-collection-yaml-mode.el | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/modes/lua-mode/evil-collection-lua-mode.el b/modes/lua-mode/evil-collection-lua-mode.el index f8cfc74..1345fe7 100644 --- a/modes/lua-mode/evil-collection-lua-mode.el +++ b/modes/lua-mode/evil-collection-lua-mode.el @@ -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 () diff --git a/modes/python/evil-collection-python.el b/modes/python/evil-collection-python.el index 96e2956..c71395e 100644 --- a/modes/python/evil-collection-python.el +++ b/modes/python/evil-collection-python.el @@ -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 () diff --git a/modes/ruby-mode/evil-collection-ruby-mode.el b/modes/ruby-mode/evil-collection-ruby-mode.el index 28c9296..347e6c8 100644 --- a/modes/ruby-mode/evil-collection-ruby-mode.el +++ b/modes/ruby-mode/evil-collection-ruby-mode.el @@ -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 () diff --git a/modes/sh-script/evil-collection-sh-script.el b/modes/sh-script/evil-collection-sh-script.el index 5489efa..35a7bff 100644 --- a/modes/sh-script/evil-collection-sh-script.el +++ b/modes/sh-script/evil-collection-sh-script.el @@ -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 () diff --git a/modes/typescript-mode/evil-collection-typescript-mode.el b/modes/typescript-mode/evil-collection-typescript-mode.el index 7ad0c00..47366e6 100644 --- a/modes/typescript-mode/evil-collection-typescript-mode.el +++ b/modes/typescript-mode/evil-collection-typescript-mode.el @@ -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 () diff --git a/modes/yaml-mode/evil-collection-yaml-mode.el b/modes/yaml-mode/evil-collection-yaml-mode.el index e69ea79..3bf6667 100644 --- a/modes/yaml-mode/evil-collection-yaml-mode.el +++ b/modes/yaml-mode/evil-collection-yaml-mode.el @@ -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 ()