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

15 lines
573 B
EmacsLisp
Raw Normal View History

2012-08-28 04:30:01 +10:00
(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)
2012-08-31 01:31:48 +10:00
(define-key evil-motion-state-map (kbd "C-u") 'evil-scroll-up)
2012-08-28 04:30:01 +10:00
;; TODO
;; Map D to C-k (i.e. preserve paredit's version)