dotfiles/editors/emacs/bjeanes/99_vim.el

15 lines
573 B
EmacsLisp

(require 'evil)
(evil-mode 1)
(define-key evil-normal-state-map [escape] 'keyboard-quit)
(define-key evil-visual-state-map [escape] 'keyboard-quit)
(define-key minibuffer-local-map [escape] 'minibuffer-keyboard-quit)
(define-key minibuffer-local-ns-map [escape] 'minibuffer-keyboard-quit)
(define-key minibuffer-local-completion-map [escape] 'minibuffer-keyboard-quit)
(define-key minibuffer-local-must-match-map [escape] 'minibuffer-keyboard-quit)
(define-key evil-motion-state-map (kbd "C-u") 'evil-scroll-up)
;; TODO
;; Map D to C-k (i.e. preserve paredit's version)