+hook to after-init for evil mode

This commit is contained in:
2020-08-15 00:02:13 +01:00
parent 119ed6b20b
commit 7dd02a2a13

View File

@@ -193,12 +193,12 @@ Setup the evil package, with some basic keybinds. Also declare a
leader-map at "SPC".
#+BEGIN_SRC emacs-lisp
(use-package evil
:hook (after-init-hook . evil-mode)
:init
(setq evil-want-keybinding nil
evil-split-window-below t
evil-vsplit-window-right t)
:config
(evil-mode +1)
(evil-define-key 'normal global-map
"TAB" #'evil-jump-item)
(evil-define-key 'visual 'emacs-lisp-mode-map "gr" #'eval-region)