evil: j and k now scroll when held

This commit is contained in:
MitchMarq42 2022-10-09 11:52:06 -08:00
parent 5a0b2fe0a3
commit f46cfb62ff
2 changed files with 7 additions and 7 deletions

View File

@ -20,11 +20,6 @@
"<escape>" 'keyboard-escape-quit
"C--" 'text-scale-decrease
"C-=" 'text-scale-increase)
;; evil visual line mode, not sure why re-implemented
(general-define-key
:states 'motion
"j" 'evil-next-visual-line
"k" 'evil-previous-visual-line)
;; we are not spacemacs, but we might be
(general-define-key
:states '(normal visual)

View File

@ -69,11 +69,16 @@
;; load evil
(use-package evil
:general
;; Visual lines. Redefined for auto-scrolling madness.
(general-define-key
:states 'normal
"<escape>" 'evil-beginning-of-line
"C-p" 'scroll-down-line
"C-n" 'scroll-up-line)
"j" (general-key-dispatch 'evil-next-visual-line
:timeout 0.025
"j" 'scroll-up-line)
"k" (general-key-dispatch 'evil-previous-visual-line
:timeout 0.025
"k" 'scroll-down-line))
(general-define-key
:states 'insert
"C-w" 'evil-window-map