dotfiles/emacs/.emacs.d/config/init-evil.el

22 lines
474 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-tree)
(evil-split-window-below t)
(evil-vsplit-window-right t))
(use-package evil-collection
:after evil)
(provide 'init-evil)