diff options
| author | jao <jao@gnu.org> | 2026-09-06 23:23:26 +0100 |
|---|---|---|
| committer | jao <jao@gnu.org> | 2026-09-06 23:23:26 +0100 |
| commit | 10019bc241f0f9a30fb44371546b0d8f532892ed (patch) | |
| tree | cd3c83a88bbfe5e2b16f67beaf4b4604f3f2c560 /lib/eos/jao-afio.el | |
| parent | 0f8eb65fb807a125dd601cd6b3ee746e6c7b6020 (diff) | |
| download | elibs-10019bc241f0f9a30fb44371546b0d8f532892ed.tar.gz elibs-10019bc241f0f9a30fb44371546b0d8f532892ed.tar.bz2 | |
little fixes for doc-view and pdfs
Diffstat (limited to 'lib/eos/jao-afio.el')
| -rw-r--r-- | lib/eos/jao-afio.el | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/eos/jao-afio.el b/lib/eos/jao-afio.el index 9e402a2..f6f07a3 100644 --- a/lib/eos/jao-afio.el +++ b/lib/eos/jao-afio.el @@ -22,6 +22,7 @@ (require 'multisession) (require 'cl-lib) (require 'jao-doc-session) +(require 'jao-pdf) (defvar jao-afio-use-frames (not window-system)) (defvar jao-afio-frame-parameters nil) @@ -115,14 +116,16 @@ (interactive) (dolist (doc (or docs (jao-doc-session))) (when (and (stringp doc) (file-exists-p doc)) - (if (jao-pdf-is-pdf-file doc) (jao-open-doc doc) (find-file doc)) + (if (jao-pdf-is-pdf-file doc) (funcall jao-open-doc-fun doc) (find-file doc)) (other-window 1))) (other-window 1)) +(defvar jao-afio-left-width nil) + (defun jao-afio-open-doc () (interactive) (delete-other-windows) - (split-window-right 80) + (split-window-right jao-afio-left-width) (let ((docs (cl-remove-if-not 'jao-doc-session-is-doc (buffer-list)))) (if (car docs) (progn (switch-to-buffer (car docs)) @@ -163,7 +166,7 @@ ;;;###autoload (defun jao-afio-open-gnus () (interactive) - (jao-org-agenda) + ;; (jao-org-agenda) (calendar) (find-file (expand-file-name "inbox.org" org-directory)) (delete-other-windows) |
