[emacs] some pdf-tools customizations
authorAmin Bandali <bandali@gnu.org>
Wed, 31 Oct 2018 15:55:59 +0000 (11:55 -0400)
committerAmin Bandali <bandali@gnu.org>
Wed, 31 Oct 2018 15:55:59 +0000 (11:55 -0400)
init.org

index 6d0b40f..058b9b0 100644 (file)
--- a/init.org
+++ b/init.org
@@ -1610,13 +1610,17 @@ Also see [[https://www.emacswiki.org/emacs/rebox2][rebox2]].
 #+begin_src emacs-lisp
 (use-package pdf-tools
   :magic ("%PDF" . pdf-view-mode)
-  :config (pdf-tools-install)
+  :config
+  (setq pdf-view-resize-factor 1.05)
+  (pdf-tools-install)
   :bind
   (:map pdf-view-mode-map
         ("C-s" . isearch-forward)
         ("C-r" . isearch-backward)
         ("j"   . pdf-view-next-line-or-next-page)
-        ("k"   . pdf-view-previous-line-or-previous-page)))
+        ("k"   . pdf-view-previous-line-or-previous-page)
+        ("h"   . image-backward-hscroll)
+        ("l"   . image-forward-hscroll)))
 #+end_src
 
 ** anzu