diff options
| author | jao <jao@gnu.org> | 2026-11-27 22:59:47 +0000 |
|---|---|---|
| committer | jao <jao@gnu.org> | 2026-11-27 22:59:47 +0000 |
| commit | bca51e1655d5a305745b7826cf5134f37f6a960a (patch) | |
| tree | 47fa78d6fa69e004f412087722583b2efac1e95d /lib/doc/jao-pdf.el | |
| parent | 307f2adf232ab89325549346aadab69ed1702b8d (diff) | |
| download | elibs-bca51e1655d5a305745b7826cf5134f37f6a960a.tar.gz elibs-bca51e1655d5a305745b7826cf5134f37f6a960a.tar.bz2 | |
afio refactorings
Diffstat (limited to 'lib/doc/jao-pdf.el')
| -rw-r--r-- | lib/doc/jao-pdf.el | 10 |
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 |
