This is my first day using emacs and I feel a bit embarassed about this question, but it just does not work for me.
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
C-, to see if there is some conflicting binding issue or similar, but before and after adding this line emacs reports
C-, is undefined.
It should leave insert state and go back to normal state when
- Install Doom Emacs
doom/config.el, add one of those lines shown above.
- Restart Emacs with
- Try to leave insert mode with
I am not sure if
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 :-(
Loading data dump...