Doc-view: Use normal state

This commit is contained in:
James Nguyen 2018-01-27 11:38:34 -08:00
parent bd302e9d93
commit 9e68afb767
1 changed files with 4 additions and 3 deletions

View File

@ -32,8 +32,9 @@
(defun evil-collection-doc-view-setup ()
"Set up `evil' bindings for `doc-view'."
(evil-set-initial-state 'doc-view-mode 'motion)
(evil-define-key 'motion doc-view-mode-map
(evil-set-initial-state 'doc-view-mode 'normal)
(evil-define-key 'normal doc-view-mode-map
"q" 'quit-window
(kbd "C-j") 'doc-view-next-page
(kbd "C-k") 'doc-view-previous-page
"gj" 'doc-view-next-page
@ -73,7 +74,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 doc-view-mode-map
(evil-define-key 'normal doc-view-mode-map
(kbd "C-u") 'backward-page)))
(provide 'evil-collection-doc-view)