summaryrefslogtreecommitdiffhomepage
path: root/custom
diff options
context:
space:
mode:
Diffstat (limited to 'custom')
-rw-r--r--custom/jao-custom-gnus.el4
-rw-r--r--custom/jao-custom-pdf.el9
2 files changed, 8 insertions, 5 deletions
diff --git a/custom/jao-custom-gnus.el b/custom/jao-custom-gnus.el
index 21f392b..ecf0e52 100644
--- a/custom/jao-custom-gnus.el
+++ b/custom/jao-custom-gnus.el
@@ -47,10 +47,10 @@
(setq calendar-left-margin 6)
(if jao-gnus-use-three-panes
- (let ((side-bar '(vertical 1.0
+ (let ((side-bar `(vertical 1.0
("inbox.org" 0.4)
("*Org Agenda*" 1.0)
- ("*Calendar*" 8)))
+ ("*Calendar*" ,(jao-d-l 9 8))))
(wide-len jao-gnus-wide-width)
(groups-len jao-gnus-groups-width)
(summary-len (- jao-gnus-wide-width jao-gnus-groups-width)))
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