Add C-u and C-d to pdf-view-mode-map (#335)

* Add C-u and C-d to pdf-view-mode-map

C-u and C-d will trigger respectively:
- pdf-view-scroll-down-or-previous-page
- pdf-view-scroll-up-or-next-page
in order to reflect evil/vim C-u and C-d.
This commit is contained in:
dani84bs 2020-05-18 21:54:34 +02:00 committed by GitHub
parent 734abad39c
commit ecd724ed29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -180,6 +180,14 @@
"ZQ" 'kill-this-buffer
"ZZ" 'quit-window)
(when evil-want-C-d-scroll
(evil-collection-define-key 'normal 'pdf-view-mode-map
(kbd "C-d") 'pdf-view-scroll-up-or-next-page))
(when evil-want-C-d-scroll
(evil-collection-define-key 'normal 'pdf-view-mode-map
(kbd "C-u") 'pdf-view-scroll-down-or-previous-page))
(evil-collection-define-key 'visual 'pdf-view-mode-map
"y" 'pdf-view-kill-ring-save)