summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-04-06 00:31:42 +0100
committerjao <jao@gnu.org>2021-04-06 00:31:42 +0100
commit5f1522f54f89da9c687ca5ede7b4c5e703bf8df0 (patch)
tree6346af99a3fa858ea020858fcf8e9aca8f1f2013
parent52c3a690da3ceb54a04e5ceac593dc8ca8984516 (diff)
downloadelibs-5f1522f54f89da9c687ca5ede7b4c5e703bf8df0.tar.gz
elibs-5f1522f54f89da9c687ca5ede7b4c5e703bf8df0.tar.bz2
bindings for the new doc-view commands
-rw-r--r--init.org22
1 files changed, 14 insertions, 8 deletions
diff --git a/init.org b/init.org
index f0c04d0..ef0dede 100644
--- a/init.org
+++ b/init.org
@@ -1494,11 +1494,14 @@
doc-view-conversion-refresh-interval 1))
(use-package jao-doc-view
- :config (jao-doc-view-start-session-timer))
+ :bind (:map doc-view-mode-map
+ ("b" . jao-doc-view-back)
+ ("B" . jao-doc-view-forward)
+ ("S" . jao-doc-view-save-session)))
(use-package saveplace-pdf-view :ensure t :demand t :after doc-view)
#+end_src
-*** open pdf and session
+*** open pds
#+begin_src emacs-lisp
(defvar jao-open-doc-fun 'jao-find-or-open)
@@ -1534,13 +1537,16 @@
("Notes"
(("o" jao-org-pdf-goto-org "notes file")
("O" (jao-org-pdf-goto-org 4) "notes file, linking"))
- "Session"
- (("g" jao-doc-view-goto-bmk "go to saved bookmark")
- ("s" jao-open-pdf-session "load session")
- ("d" doc-view-dired-cache "visit cache directory"))
+ "Navigation"
+ (("b" jao-doc-view-back "back jump")
+ ("B" jao-doc-view-back "forward jump"))
"Slices"
- (("b" doc-view-set-slice-from-bounding-box "bounding box")
- ("m" doc-view-set-slice-using-mouse "using mouse"))))
+ (("cb" doc-view-set-slice-from-bounding-box "bounding box")
+ ("cm" doc-view-set-slice-using-mouse "using mouse"))
+ "Session"
+ (("s" jao-open-pdf-session "load session")
+ ("S" jao-doc-view-save-session "save session")
+ ("d" doc-view-dired-cache "visit cache directory"))))
#+end_src
* Email
*** message mode