dotfiles/emacs/.emacs.d/config/init-evil.el
2022-04-06 11:28:06 -04:00

22 lines
472 B
EmacsLisp

;; -*- lexical-binding: t; -*-
;; Set up Vim keybindings with evil-mode
(use-package evil
:init
(setq evil-want-keybinding nil
evil-respect-visual-line-mode t)
:config
(evil-mode 1)
(evil-define-key 'motion 'global
"j" #'evil-next-visual-line
"k" #'evil-previous-visual-line)
:custom
(evil-undo-system 'undo-fu)
(evil-split-window-below t)
(evil-vsplit-window-right t))
(use-package evil-collection
:after evil)
(provide 'init-evil)