summaryrefslogtreecommitdiffhomepage
path: root/init.el
diff options
context:
space:
mode:
Diffstat (limited to 'init.el')
-rw-r--r--init.el18
1 files changed, 9 insertions, 9 deletions
diff --git a/init.el b/init.el
index 61fa309..52184d9 100644
--- a/init.el
+++ b/init.el
@@ -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)