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 "<escape>" 'keyboard-escape-quit
"C--" 'text-scale-decrease "C--" 'text-scale-decrease
"C-=" 'text-scale-increase) "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 ;; we are not spacemacs, but we might be
(general-define-key (general-define-key
:states '(normal visual) :states '(normal visual)

View File

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