feature/evil: update evil-shift-width manually (experimental)

This commit is contained in:
Henrik Lissner 2018-06-05 13:23:37 +02:00
parent 4978a64678
commit d5934ec8f7
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -77,6 +77,10 @@ variable for an explanation of the defaults (in comments). See
(setq +evil--default-cursor-color (face-background 'cursor))) (setq +evil--default-cursor-color (face-background 'cursor)))
(add-hook 'doom-load-theme-hook #'+evil|update-cursor-color) (add-hook 'doom-load-theme-hook #'+evil|update-cursor-color)
(defun +evil|update-shift-width ()
(setq evil-shift-width tab-width))
(add-hook 'after-change-major-mode-hook #'+evil|update-shift-width t)
;; --- keybind fixes ---------------------- ;; --- keybind fixes ----------------------
(after! wgrep (after! wgrep