Fix bugs with evil config

This commit is contained in:
outfoxxed 2022-11-29 17:29:53 -08:00
parent f595a7f8e8
commit 2baadca418
No known key found for this signature in database
GPG key ID: 5775F651AC84FFE6

13
init.el
View file

@ -80,8 +80,11 @@
(use-package rainbow-mode) (use-package rainbow-mode)
;; Evil (Vim Emulation) ;; Evil (Vim Emulation)
(use-package evil) (use-package evil
(setq evil-move-beyond-eol t) :init
(setq evil-want-fine-undo t) ;; multi step undo in insert mode (setq evil-mode-beyond-eol t)
(add-hook 'prog-mode-hook (lambda () (evil-mode +1))) (setq evil-mode-fine-undo t)
(add-hook 'change-major-mode-hook (lambda () (evil-mode -1))) (setq evil-default-state 'emacs)
:config
(evil-set-initial-state 'prog-mode 'normal)
(evil-mode +1))