I have re-assigned the RETURN key to exit the insert state in Evil mode.
(define-key evil-insert-state-map [return] 'evil-normal-state)
But this does't work with emacs -nw
in terminal. Any way to make it work?
I have re-assigned the RETURN key to exit the insert state in Evil mode.
(define-key evil-insert-state-map [return] 'evil-normal-state)
But this does't work with emacs -nw
in terminal. Any way to make it work?
[return]
. Use(kbd "RET")
which will work in and out of terminals. Note that you can ask Emacs --C-h k
would have told you how that key was described. – phils Oct 12 '18 at 21:32kbd
allows you to use the Emacs notation for keys, and it will make your init file more readable for everyone, including you. – Oct 12 '18 at 21:59C-h k
. – Arktik Oct 12 '18 at 21:59