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