evil: j and k now scroll when held
This commit is contained in:
parent
5a0b2fe0a3
commit
f46cfb62ff
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user