summaryrefslogtreecommitdiffhomepage
path: root/custom/jao-custom-pdf.el
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2025-09-27 19:32:02 +0100
committerjao <jao@gnu.org>2025-09-27 19:32:02 +0100
commitfd27d027d8c48045723914632d0a115eab52f7cd (patch)
treec1e31df0b8b1e0453212f453a2c6a3b8ecf58d13 /custom/jao-custom-pdf.el
parentd5ba2e907bfafc5ce110fbce99a8e851649d0c9e (diff)
downloadelibs-fd27d027d8c48045723914632d0a115eab52f7cd.tar.gz
elibs-fd27d027d8c48045723914632d0a115eab52f7cd.tar.bz2
reading pdfs in a mac
Diffstat (limited to 'custom/jao-custom-pdf.el')
-rw-r--r--custom/jao-custom-pdf.el9
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