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
|
"<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)
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user