Image: Use normal state

This commit is contained in:
James Nguyen 2018-01-27 11:32:50 -08:00
parent 387fd5e4b8
commit 5bb93afb3f
2 changed files with 4 additions and 4 deletions

View File

@ -32,7 +32,7 @@
(defun evil-collection-image+-setup ()
"Set up `evil' bindings for `image+'."
(evil-define-key 'motion image-mode-map
(evil-define-key 'normal image-mode-map
;; zoom
"+" 'imagex-sticky-zoom-in
"=" 'imagex-sticky-zoom-in

View File

@ -35,9 +35,9 @@
(defun evil-collection-image-setup ()
"Set up `evil' bindings for `image-mode'."
(evil-set-initial-state 'image-mode 'motion)
(evil-set-initial-state 'image-mode 'normal)
(evil-define-key 'motion image-mode-map
(evil-define-key 'normal image-mode-map
;; motion
"gg" 'image-bob
"G" 'image-eob
@ -82,7 +82,7 @@
;; TODO: What if the user changes `evil-want-C-u-scroll' after this is run?
(when evil-want-C-u-scroll
(evil-define-key 'motion image-mode-map
(evil-define-key 'normal image-mode-map
(kbd "C-u") 'image-scroll-down)))
(provide 'evil-collection-image)