2021-02-21 02:59:11 +00:00
|
|
|
;; -*- lexical-binding: t; -*-
|
|
|
|
|
2021-02-20 11:40:03 +00:00
|
|
|
;; Set up Vim keybindings with evil-mode
|
|
|
|
(use-package evil
|
|
|
|
:init
|
2021-02-26 15:29:23 +00:00
|
|
|
(setq evil-want-keybinding nil
|
|
|
|
evil-respect-visual-line-mode t)
|
2021-02-20 11:40:03 +00:00
|
|
|
:config
|
2021-02-20 18:47:46 +00:00
|
|
|
(evil-mode 1)
|
2021-03-08 19:16:32 +00:00
|
|
|
(evil-define-key 'motion 'global
|
|
|
|
"j" #'evil-next-visual-line
|
|
|
|
"k" #'evil-previous-visual-line)
|
2021-02-20 18:47:46 +00:00
|
|
|
:custom
|
2021-03-19 18:29:25 +00:00
|
|
|
(evil-undo-system 'undo-tree)
|
|
|
|
(evil-split-window-below t)
|
|
|
|
(evil-vsplit-window-right t))
|
2021-02-20 11:40:03 +00:00
|
|
|
|
|
|
|
(use-package evil-collection
|
|
|
|
:after evil)
|
|
|
|
|
|
|
|
(provide 'init-evil)
|