diff options
author | jao <jao@gnu.org> | 2022-09-23 00:59:24 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2022-09-23 01:04:05 +0100 |
commit | 0db03a3d92fda3c0cf368826d0fe5a224ad688d0 (patch) | |
tree | 96d62b882b4cba7bc97f4c7fc7420052f6ae1d23 /init.el | |
parent | 5a9447886f4930b93813a201bc7194fa183be54f (diff) | |
download | elibs-0db03a3d92fda3c0cf368826d0fe5a224ad688d0.tar.gz elibs-0db03a3d92fda3c0cf368826d0fe5a224ad688d0.tar.bz2 |
cleanups for pdf navigation
Diffstat (limited to 'init.el')
-rw-r--r-- | init.el | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -1550,7 +1550,7 @@ (let ((title (or title (jao-shell-string "xdotool" "getactivewindow" "getwindowname")))) - (jao-pdf-goto-zathura-org title no-ask))) + (jao-org-open-from-zathura title no-ask))) (defun jao-find-or-open (file &optional page height) (cond ((and jao-browse-doc-use-emacs-p window-system) @@ -1579,6 +1579,14 @@ (jao-buffer-same-mode '(pdf-view-mode doc-view-mode) #'jao-afio-goto-docs)) +(defun jao-open-with-zathura () + (interactive) + (when-let (f buffer-file-name) + (let ((p (jao-doc-view-current-page))) + (cond (jao-river-enabled (jao-river-open-with-zathura f p)) + (jao-sway-enabled (jao-sway-open-with-zathura f p)) + (t (jao-zathura-open f p)))))) + ;; doc:// links for browse-url (defun jao-open-doc-url (url &rest _) (when (string-match "doc://\\([^?]+\\)\\(\\?.*\\)?" url) @@ -1609,14 +1617,6 @@ (interactive) (jao-org-pdf-goto-org 4)) -(defun jao-open-with-zathura () - (interactive) - (when-let (f buffer-file-name) - (let ((p (jao-doc-view-current-page))) - (cond (jao-river-enabled (jao-river-open-with-zathura f p)) - (jao-sway-enabled (jao-sway-open-with-zathura f p)) - (t (jao-zathura-open f p)))))) - (jao-transient-major-mode doc-view ["Notes" ("o" "notes file" jao-org-pdf-goto-org) |