Key chording in Evil to make getting to normal mode easier

This commit is contained in:
Howard Abrams 2026-02-10 09:57:55 -08:00
parent 2a5848677a
commit aed214e4eb

View file

@ -54,9 +54,7 @@ I split the configuration of Evil mode into sections. First, global settings:
evil-want-keybinding nil ; work with evil-collection evil-want-keybinding nil ; work with evil-collection
evil-want-integration t evil-want-integration t
evil-want-C-u-scroll nil evil-want-C-u-scroll nil
evil-want-C-i-jump nil evil-want-C-i-jump nil))
evil-escape-key-sequence "jk"
evil-escape-unordered-key-sequence t))
#+end_src #+end_src
The Escape key act like ~C-g~ and always go back to normal mode? The Escape key act like ~C-g~ and always go back to normal mode?
@ -199,7 +197,7 @@ I find that myself not noticing Im in /insert/ mode, and start typing =j= rep
To remedy this, Im using the [[https://www.emacswiki.org/emacs/KeyChord][KeyChord]] code: To remedy this, Im using the [[https://www.emacswiki.org/emacs/KeyChord][KeyChord]] code:
#+BEGIN_SRC emacs-lisp :tangle no #+BEGIN_SRC emacs-lisp
(use-package key-chord (use-package key-chord
:config :config
(setq key-chord-two-keys-delay 0.1) (setq key-chord-two-keys-delay 0.1)