1 line
1.4 KiB
Plaintext
1 line
1.4 KiB
Plaintext
<!-- SC_OFF --><div class="md"><p>Hello again,</p> <p>I have a custom keyboard shortcut for moving quicker in VIM (for Emacs I use EVIL) where I hold down CTRL and press HJKL I move faster in the direction.</p> <p>Like this:</p> <pre><code>;; Movement changes - BUG: When I release CTRL it still does one last 5 line jump when pressing one of my keys (define-key evil-normal-state-map (kbd "C-h") (kbd "h5")) (define-key evil-normal-state-map (kbd "C-j") (kbd "j5")) (define-key evil-normal-state-map (kbd "C-k") (kbd "k5")) (define-key evil-normal-state-map (kbd "C-l") (kbd "l5")) </code></pre> <p>However, in EMACS when I use this, it does work. But once I let go off CTRL it does ONE last 5 jump, despite that it should have stopped. It also feels a bit like there is a small delay when doing this.</p> <p>Does anyone know a possible solution for this to make it more responsive and NOT have a "last" jump after letting CTRL go.</p> <p>Thanks in advance.</p> </div><!-- SC_ON -->   submitted by   <a href="https://www.reddit.com/user/AtZeroOne"> /u/AtZeroOne </a> <br/> <span><a href="https://www.reddit.com/r/emacs/comments/rce4tw/delay_when_using_custom_evil_shortcut_to_move/">[link]</a></span>   <span><a href="https://www.reddit.com/r/emacs/comments/rce4tw/delay_when_using_custom_evil_shortcut_to_move/">[comments]</a></span> |