From 50170f9ba1bc80529c5842ee997c7f2536274f77 Mon Sep 17 00:00:00 2001 From: ndwarshuis Date: Mon, 8 Apr 2019 14:13:00 -0400 Subject: [PATCH] made pdf-view keybindings more evil --- conf.org | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/conf.org b/conf.org index 37cb074..d8a2a2a 100644 --- a/conf.org +++ b/conf.org @@ -3072,10 +3072,18 @@ I like tab completion...regardless of what the helm zealots say. (kbd "C-") 'helm-select-action) #+END_SRC **** pdf-view -Apparently it needs to be set up after pdf-view is launched #+BEGIN_SRC emacs-lisp +;; Apparently it needs to be set up after pdf-view is launched (add-hook 'pdf-view-mode-hook (lambda () (evil-collection-pdf-setup))) + +(evil-define-key '(normal visual) pdf-view-mode-map + "go" #'pdf-occur + "it" #'pdf-annot-add-text-annotation + "ih" #'pdf-annot-add-highlight-markup-annotation + "is" #'pdf-annot-add-squiggly-markup-annotation + "iu" #'pdf-annot-add-underline-markup-annotation + "io" #'pdf-annot-add-strikeout-markup-annotation) #+END_SRC **** package-menu #+BEGIN_SRC emacs-lisp