From 460d921de8788a7ae8dfaebcf5aec0d776d3cbd5 Mon Sep 17 00:00:00 2001 From: jao Date: Sat, 13 Aug 2022 19:44:05 +0100 Subject: jao-doc-session: using it --- custom/jao-custom-exwm.el | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'custom') 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") -- cgit v1.2.3