From ac7f1846c6df82133199310789782a7a9d179b76 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Tue, 18 Aug 2020 00:48:07 +0100 Subject: +pdfgrep Pdfgrep is the ultimate solution for searching pdfs easily. Using it in Emacs is a plus, and it creates a buffer that ends in grep so it follows my window management rules --- Emacs/.config/emacs/config.org | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'Emacs') diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index c3a274f..7ec0a2c 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -867,6 +867,20 @@ provides a setup for this mode, so use that. (pdf-tools-install) (evil-collection-pdf-setup)) #+end_src +*** PDF grep +PDF grep is a Linux tool that allows for searches against PDFs similar +to standard grep (but for PDFs!). It's a bit badly configured (why not +use the current buffer?) but it works out. +#+begin_src emacs-lisp +(use-package pdfgrep + :hook (pdf-view-mode . pdfgrep-mode) + :after pdf-tools + :general + (general-def + :states 'normal + :keymaps 'pdf-view-mode-hook + "M-g" #'pdfgrep)) +#+end_src * Org ** Org default with evil Setup for org mode, currently basically nothing. Has evil-org for -- cgit v1.2.3-13-gbd6f