How to map “jj” to Esc in emacs Evil mode

This works for me. It requires the KeyChord library: ;;Exit insert mode by pressing j and then j quickly (setq key-chord-two-keys-delay 0.5) (key-chord-define evil-insert-state-map “jj” ‘evil-normal-state) (key-chord-mode 1) It is inspired by @phils answer above and based on Simon’s Coding Blog: Emacs and Unity Every Day.

Evil Mode best practice? [closed]

I used a highly customized vim, and now use an even more customized emacs. I think you’ll find every instance of keymapping in my keymapping config file https://github.com/mbriggs/.emacs.d-oldv2/blob/master/init/init-keymaps.el Keep in mind, I am rebinding stuff that real emacs users would consider heresy, so YMMV if you ever want to learn “real” emacs (I really don’t). … Read more

tech