Fix bugs with evil config
This commit is contained in:
parent
f595a7f8e8
commit
2baadca418
13
init.el
13
init.el
|
@ -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))
|
||||||
|
|
Loading…
Reference in a new issue