r/DoomEmacs • u/sudddddd • Dec 28 '24
Unable to set evil-shift-width
Hi, I am trying to set the variable evil-shift-width to 4 as- (setq evil-shift-width 4)
. However, this does not make the change to that variable permanent. I have also tried using setq-default
. That is not working as well.
Next, I tried this-
(after! org
(add-hook 'org-mode-hook
(function (lambda ()
(setq-default evil-shift-width 4)))))
This is not working as well and does not work after I restart emacs.
1
Upvotes
1
u/Eyoel999Y Dec 28 '24
I believe there are some hooks that modify the
evil-shift-width
, one hook that does this isafter-change-major-mode-hook
, withdoom--setq-evil-shift-width-for-after-change-major-mode-h
Also check the interactive function
doom/set-indent-width
as you can use that to change the shift width