Hi,
This is my first day using emacs and I feel a bit embarassed about this question, but it just does not work for me.
What happened?
So, I would like to rebind ESC key, which is used for leaving insert state and going back to normal state in evil mode.
I have tried the following versions, only one at a time:
(after! evil
(define-key evil-insert-state-map (kbd "qq") 'evil-normal-state))
(after! evil
(evil-define-key 'insert 'global (kbd "qq") 'evil-normal-state))
(after! evil
(map! :map evil-insert-state-map "C-," #'evil-normal-state))
In this last example I have changed qq to C-, to see if there is some conflicting binding issue or similar, but before and after adding this line emacs reports C-, is undefined.
What did you expect to happen?
It should leave insert state and go back to normal state when qq pressed.
Steps to reproduce
- Install Doom Emacs
- Open
doom/config.el, add one of those lines shown above. - Restart Emacs with
SPC-q-r - Try to leave insert mode with
qq. (No luck yet.)
I am not sure if qq is the right way to write double q press, that’s why I have tried different bindings too. I am also confused about the # before the ' in the last example, no idea if those matter or not. I am not familiar with Lisp/Scheme either :-(
System information
Loading data dump...