summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2021-04-11 02:04:41 +0800
committerJSDurand <mmemmew@gmail.com>2021-04-11 02:04:41 +0800
commitf8326f6fb04709b46cdb5727835595d21a181241 (patch)
tree5713a625bc72107359f09a4e9f950b41e89b80a0
parent79e1c7bd2cd833d733a365ffd13a0f28cd604bec (diff)
Scroll to left and right
This comes in handy when one enlarges the PDF image. * pdf.el (pdf-view-mode-map):
-rw-r--r--pdf.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/pdf.el b/pdf.el
index 82bcc2b..f595e7b 100644
--- a/pdf.el
+++ b/pdf.el
@@ -49,6 +49,8 @@
(define-key pdf-view-mode-map (vector ?d) #'pdf-view-up-half-page-or-next-page)
(define-key pdf-view-mode-map (vector ?u) #'pdf-view-down-half-page-or-previous-page)
(define-key pdf-view-mode-map (vector 'tab) #'pdf-view-page-position)
+(define-key pdf-view-mode-map (vector ?\C-<) #'image-scroll-left)
+(define-key pdf-view-mode-map (vector ?\C->) #'image-scroll-right)
(use-package "pdf-tools/lisp" 'pdf-history)
(use-package "pdf-tools/lisp" 'pdf-links)