blob: c41296b59155cbe7ba6d7f2ed1fb8ecd71b25edc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
(when (gx/maybe-require-package 'evil)
(add-hook 'after-init-hook (lambda () (evil-mode 1))))
(setq evil-want-integration t
evil-want-C-u-scroll t
evil-wannt-fine-undo t
evil-want-keybinding nil
evil-disable-insert-state-bindings t)
(with-eval-after-load 'evil
(evil-set-leader 'normal ",")
(evil-set-undo-system 'undo-tree)
(evil-define-key 'insert 'global
(kbd "C-【") 'evil-normal-state)
(evil-define-key 'normal 'global
(kbd "gj") 'evil-next-visual-line
(kbd "gk") 'evil-previous-visual-line))
;; evil-collection
(when (gx/maybe-require-package 'evil-collection)
(with-eval-after-load 'evil
(evil-collection-init)))
;; evil-easymotion
(when (gx/maybe-require-package 'evil-easymotion)
(with-eval-after-load 'evil
(evilem-default-keybindings "SPC")))
(provide 'init-evil)
|