summaryrefslogtreecommitdiffhomepage
path: root/init.org
diff options
context:
space:
mode:
Diffstat (limited to 'init.org')
-rw-r--r--init.org6
1 files changed, 6 insertions, 0 deletions
diff --git a/init.org b/init.org
index 252487c..4efb652 100644
--- a/init.org
+++ b/init.org
@@ -1652,6 +1652,12 @@
(dolist (doc (jao-doc-view-session))
(when (and (file-exists-p doc) (y-or-n-p (format "Open %s? " doc)))
(jao-find-or-open doc))))
+
+ (defun jao-afio-open-pdf (file page &optional height)
+ (jao-open-doc file)
+ (when page (jao-org--pdf-go page height)))
+
+ (setq jao-org-open-pdf-fun #'jao-afio-open-pdf)
#+END_SRC
* Email
*** message mode