diff options
Diffstat (limited to 'custom')
-rw-r--r-- | custom/jao-custom-pdf.el | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/custom/jao-custom-pdf.el b/custom/jao-custom-pdf.el index 98a28b1..50612bf 100644 --- a/custom/jao-custom-pdf.el +++ b/custom/jao-custom-pdf.el @@ -9,7 +9,7 @@ (use-package jao-pdf :demand t :config - (setq jao-open-doc-fun (jao-d-l 'jao-pdf-open-in-devon 'jao-find-or-open)) + (setq jao-open-doc-fun 'jao-find-or-open) (setq jao-org-open-pdf-fun jao-open-doc-fun)) ;;;; doc-view @@ -20,13 +20,15 @@ doc-view-continuous t doc-view-conversion-refresh-interval 1 doc-view-mupdf-use-svg t) + (defalias 'jao-doc-view-externally + (jao-d-l 'jao-mac-open-in-skim 'jao-open-with-zathura)) :hook ((doc-view-mode . jao-doc-session-mark)) :bind (:map doc-view-mode-map ("j" . doc-view-next-line-or-next-page) ("J" . doc-view-search-next-match) ("k" . doc-view-previous-line-or-previous-page) ("K" . doc-view-search-previous-match) - ("z" . jao-open-with-zathura))) + ("z" . jao-doc-view-externally))) (use-package jao-doc-session :demand t) @@ -59,7 +61,8 @@ ("S" "save session" jao-doc-session-save) ("d" "visit cache directory" doc-view-dired-cache)] ["External viewers" - ("z" "open with zathura" jao-open-with-zathura)]) + ("z" "open with zathura" jao-open-with-zathura :if jao-is-linux) + ("z" "open with skim" jao-mac-open-in-skim :if jao-is-darwin)]) (with-eval-after-load "pdf-view" (jao-transient-major-mode pdf-view |