summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfpi2020-01-29 17:36:11 +0100
committerfpi2020-01-29 17:59:01 +0100
commit67b1c2713efe192a21367c6cfaf0cc4cfbbb4746 (patch)
treec332cca0dfe53b3320b5b293b0c3f7946645a33b
parentIntroduce Zetteldeft (diff)
Easier prefix for pdf-annot keybindings
-rw-r--r--emacs-init.org15
1 files changed, 13 insertions, 2 deletions
diff --git a/emacs-init.org b/emacs-init.org
index f7147e0..6b2ad17 100644
--- a/emacs-init.org
+++ b/emacs-init.org
@@ -1436,10 +1436,21 @@ make sure to compile the tex document with the option ~--synctex=1~.
(pdf-tools-install))
#+END_SRC
-Add support for pdf annotations.
+Add support for pdf annotations. Rebind ~pdf-annot-minor-mode-map~ to
+an easier prefix and undefine the bindings of ~image-mode~ for this
+prefix. For now they are unbound globally as I never use them. It
+would be better to unbind them only when in ~pdf-view-mode~.
#+BEGIN_SRC emacs-lisp
+(use-package image-mode
+ :config
+ (define-key image-mode-map "a+" nil)
+ (define-key image-mode-map "a-" nil)
+ (define-key image-mode-map "a0" nil)
+ (define-key image-mode-map "ar" nil))
+
(use-package pdf-annot
- :bind (:map pdf-annot-minor-mode-map ("C-c C-a d" . pdf-annot-delete)))
+ :init (setq pdf-annot-minor-mode-map-prefix "a")
+ :bind (:map pdf-annot-minor-mode-map ("a d" . pdf-annot-delete)))
#+END_SRC
** Latex
#+begin_src emacs-lisp