diff options
author | jao <jao@gnu.org> | 2022-09-17 04:50:05 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2022-09-17 04:50:05 +0100 |
commit | 38edd211612e070c101de2ebd25152daa952ca49 (patch) | |
tree | 19983ae6891aafab53c26b3c87585753e9f377ab | |
parent | e335b287e384b7b265c8b8fe69b09759b19db91f (diff) | |
download | elibs-38edd211612e070c101de2ebd25152daa952ca49.tar.gz elibs-38edd211612e070c101de2ebd25152daa952ca49.tar.bz2 |
open with zathura for doc-view
-rw-r--r-- | init.el | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -1608,6 +1608,11 @@ (interactive) (jao-org-pdf-goto-org 4)) +(defun jao-doc-view-open-with-zathura () + (interactive) + (when buffer-file-name + (jao-zathura-open buffer-file-name (doc-view-current-page)))) + (jao-transient-major-mode doc-view ["Notes" ("o" "notes file" jao-org-pdf-goto-org) @@ -1622,7 +1627,9 @@ ["Session" ("s" "load session" jao-afio-open-pdf-session) ("S" "save session" jao-doc-session-save) - ("d" "visit cache directory" doc-view-dired-cache)]) + ("d" "visit cache directory" doc-view-dired-cache)] + ["External viewers" + ("z" "open with zathura" jao-doc-view-open-with-zathura)]) (with-eval-after-load "pdf-view" (jao-transient-major-mode pdf-view |