Skip to content

Instantly share code, notes, and snippets.

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

Embed
What would you like to do?
'perfect' combination of emacs+evil
;;; https://lists.ourproject.org/pipermail/implementations-list/2012-February/001513.html
(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 ()
(interactive)
(insert "j"))
(evil-mode)
(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.