25 lines
600 B
EmacsLisp
25 lines
600 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)
|
|
:custom
|
|
(evil-undo-system 'undo-tree))
|
|
|
|
(use-package evil-collection
|
|
:after evil)
|
|
|
|
(use-package evil-numbers
|
|
:straight (:host github :repo "juliapath/evil-numbers")
|
|
:general
|
|
(normal "g+" #'evil-numbers/inc-at-pt)
|
|
(normal "g-" #'evil-numbers/dec-at-pt)
|
|
(normal "g M-+" #'evil-numbers/inc-at-pt-incremental)
|
|
(normal "g M--" #'evil-numbers/dec-at-pt-incremental))
|
|
|
|
(provide 'init-evil)
|