summaryrefslogtreecommitdiffhomepage
path: root/lib/doc/jao-pdf.el
diff options
context:
space:
mode:
Diffstat (limited to 'lib/doc/jao-pdf.el')
-rw-r--r--lib/doc/jao-pdf.el10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/doc/jao-pdf.el b/lib/doc/jao-pdf.el
index 01334b1..0347dc8 100644
--- a/lib/doc/jao-pdf.el
+++ b/lib/doc/jao-pdf.el
@@ -124,6 +124,16 @@
(add-to-list 'browse-url-handlers (cons "^doc://.+" 'jao-open-doc-url))
+;;; afio
+;;;###autoload
+(defun jao-pdf-open-session (&optional docs)
+ (interactive)
+ (dolist (doc (or docs (jao-doc-session)))
+ (when (and (stringp doc) (file-exists-p doc))
+ (if (jao-pdf-is-pdf-file doc) (funcall jao-open-doc-fun doc) (find-file doc))
+ (other-window 1)))
+ (other-window 1))
(provide 'jao-pdf)
+
;;; jao-pdf.el ends here