diff options
author | jao <jao@gnu.org> | 2022-08-13 19:44:05 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2022-08-13 19:44:05 +0100 |
commit | 460d921de8788a7ae8dfaebcf5aec0d776d3cbd5 (patch) | |
tree | e4494093353f2377af84f6f7f8191e5e067fc249 /custom | |
parent | 65855b5c9980ff282234fb91a82a45d75b67f8c1 (diff) | |
download | elibs-460d921de8788a7ae8dfaebcf5aec0d776d3cbd5.tar.gz elibs-460d921de8788a7ae8dfaebcf5aec0d776d3cbd5.tar.bz2 |
jao-doc-session: using it
Diffstat (limited to 'custom')
-rw-r--r-- | custom/jao-custom-exwm.el | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/custom/jao-custom-exwm.el b/custom/jao-custom-exwm.el index 2a38a6c..44da990 100644 --- a/custom/jao-custom-exwm.el +++ b/custom/jao-custom-exwm.el @@ -320,8 +320,8 @@ (when (and (string= exwm-class-name "Zathura") (not jao-doc-view--imenu-file)) (let ((info (jao-zathura--file-info (current-buffer)))) - (jao-doc-view-session-mark (car info)) - (jao-doc-view-save-session) + (jao-doc-session-mark (car info)) + (jao-doc-session-save) (jao-doc-view--enable-imenu (car info) #'jao-zathura-goto-page)))) (add-hook 'exwm-update-title-hook #'jao-exwm--zathura-setup t) @@ -396,11 +396,10 @@ (pop-to-buffer b))) -(let ((viewers ["External viewers" - ("z" "open with zathura" jao-zathura-open-doc) - ("m" "open with mupdf" jao-exwm-open-with-mupdf)])) - (jao-transient-major-mode+ pdf-view viewers) - (jao-transient-major-mode+ doc-view viewers)) +(jao-transient-major-mode+ doc-view + ["External viewers" + ("z" "open with zathura" jao-zathura-open-doc) + ("m" "open with mupdf" jao-exwm-open-with-mupdf)]) ;;; Firefox support (jao-def-exwm-toggler jao-exwm-firefox 5 "Firefox" "firefox") |