aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/lisp/init-evil.el
blob: c0ceb4886e1ef81fe6d843c918f54503c2948191 (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
30
31
(use-package evil
  :ensure t
  :hook ((evil-org-mode . (lambda () (setq evil-want-C-i-jump nil)))
	 (after-init . (lambda () (evil-mode 1))))
  :init
  (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)
  :config
  (evil-set-leader 'normal ",")
  (evil-set-undo-system 'undo-tree)
  (evil-define-key 'normal 'global
    (kbd "<leader>fc") 'execute-extended-command)
  (evil-define-key 'insert 'global
    (kbd "C-【") 'evil-normal-state))

(use-package evil-collection
  :after evil
  :ensure t
  :config
  (evil-collection-init))

(use-package evil-easymotion
  :ensure t
  :after (evil avy)
  :config
  (evilem-default-keybindings "SPC"))

(provide 'init-evil)