Skip to content

Instantly share code, notes, and snippets.

@kidd kidd/emvil.el
Created Feb 14, 2012

What would you like to do?
'perfect' combination of emacs+evil
(add-to-list 'load-path "~/programmingStuff/evil/")
(require 'evil)
;; remove all keybindings from insert-state keymap
(setcdr evil-insert-state-map nil)
;; but [escape] should switch back to normal state
(define-key evil-insert-state-map [escape] 'evil-normal-state)
(define-key evil-insert-state-map (kbd "jk") 'evil-normal-state)
(define-key evil-insert-state-map (kbd "jj") 'insert-jay)
(defun insert-jay ()
(insert "j"))
(define-key help-mode-map (kbd "i") 'evil-emacs-state)
(define-key grep-mode-map (kbd "i") 'evil-emacs-state)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.