Closed sawyerzheng closed 1 year ago
happens to me too :(
Same on Emacs 28.2
I also see this on 29.1, but it was fine for me on 28.2.
Actually, I also see the slowness when I go back to 28.2. My guess is that an update to some other package is causing this. I will see if I can find out more.
I'm on a Mac using the railwaycat port of Emacs
The slowdown occurred for me without updating Emacs or the package itself. I deleted (and backed up) my .emacs.d directory when updating other packages. Afterward I found my key-chords very slow even though a diff showed that the package contents had not changed at all. Same version, same files.
I'm on Emacs 29.0.60
For me the solution was to customize the variables
key-chord-two-keys-delay
and key-chord-safety-interval-forward
. It was the latter that was causing the delay.
I use key-chord to remap ESC
in Evil mode. Here is my use-package config as an example. Hopefully it helps someone.
(use-package key-chord
:after evil
:custom
(key-chord-two-keys-delay 0.05)
(key-chord-safety-interval-forward 0.1)
:config
(key-chord-mode 1)
(key-chord-define evil-insert-state-map "jk" 'evil-normal-state)
(key-chord-define evil-replace-state-map "jk" 'evil-normal-state))
Thanks @rthewitt , I can confirm it solves my issue. Was an annoying two weeks without key-chord
It's also works for me on emacs 29.1.50. Thank you @rthewitt .
I've reverted the commit that caused this.
on emacs 29, key-chord calls comand will delay about one second, however normal key bindings like define-key has no delay.