diff options
-rw-r--r-- | init.org | 35 |
1 files changed, 18 insertions, 17 deletions
@@ -1484,17 +1484,22 @@ #+END_SRC * PDFs - ~M-x doc-view-presentation~ -*** open pdf and session +*** doc-view #+begin_src emacs-lisp - (use-package saveplace-pdf-view :ensure t) - - (require 'saveplace-pdf-view) + (use-package doc-view + :init + (setq doc-view-cache-directory "~/.emacs.d/cache/docview" + doc-view-resolution 110 + doc-view-continuous t + doc-view-conversion-refresh-interval 1)) - (when (require 'jao-doc-view nil t) - ;; (setq doc-view-cache-directory - ;; (expand-file-name "~/.emacs.d/cache/docview")) - (jao-doc-view-start-session-timer)) + (use-package jao-doc-view + :config (jao-doc-view-start-session-timer)) + (use-package saveplace-pdf-view :ensure t :demand t :after doc-view) + #+end_src +*** open pdf and session + #+begin_src emacs-lisp (defvar jao-open-doc-fun 'jao-find-or-open) (defun jao-find-or-open (file) @@ -1525,21 +1530,17 @@ #+end_src *** Hydra #+begin_src emacs-lisp - (major-mode-hydra-define pdf-view-mode nil - ("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")))) - (major-mode-hydra-define doc-view-mode nil ("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")))) + ("s" jao-open-pdf-session "load session") + ("d" doc-view-dired-cache "visit cache directory")) + "Slices" + (("b" doc-view-set-slice-from-bounding-box "bounding box") + ("m" doc-view-set-slice-using-mouse "using mouse")))) #+end_src * Email *** message mode |