From 3d1d6772f410ddc0ae7c36442f5be43847a8e432 Mon Sep 17 00:00:00 2001 From: jao Date: Sat, 27 Mar 2021 02:55:27 +0000 Subject: pdf-view-mode hydra adjustments --- exwm.org | 11 +++-------- init.org | 10 ++++++++++ 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/exwm.org b/exwm.org index 06ecea9..996c840 100644 --- a/exwm.org +++ b/exwm.org @@ -370,14 +370,9 @@ #+end_src * Hydras #+begin_src emacs-lisp - (major-mode-hydra-define pdf-view-mode nil - ("Elsewhere" - (("b" (jao-buffer-same-mode 'pdf-view-mode) "other PDFs") - ("o" jao-org-pdf-goto-org "notes file") - ("O" (jao-org-pdf-goto-org 4) "notes file, linking")) - "External" - (("p" doc-view-presentation "presentation") - ("z" jao-exwm-open-with-zathura "open with zathura") + (major-mode-hydra-define+ pdf-view-mode nil + ("External" + (("z" jao-exwm-open-with-zathura "open with zathura") ("m" jao-exwm-open-with-mupdf "open with mupdf")))) (defhydra jao-hydra-float (:color blue) diff --git a/init.org b/init.org index 06777e5..2b1a695 100644 --- a/init.org +++ b/init.org @@ -1635,6 +1635,16 @@ (setq jao-org-open-pdf-fun #'jao-afio-open-pdf) #+END_SRC +*** Hydra + #+begin_src emacs-lisp + (major-mode-hydra-define pdf-view-mode nil + ("Notes" + (("o" jao-org-pdf-goto-org "notes file") + ("O" (jao-org-pdf-goto-org 4) "notes file, linking")) + "Session" + (("g" jao-doc-view-goto-bmk "go to saved bookmark") + ("s" jao-open-pdf-session "load session")))) + #+end_src * Email *** message mode ***** Customization -- cgit v1.2.3