From ae449ded4258651b8adbd88590a2c4bf94811e66 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Tue, 18 Aug 2020 00:47:49 +0100 Subject: +pdf-tools config with diatribe for pdfs and why it's good in Emacs --- Emacs/.config/emacs/config.org | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index 31ac6b7..c3a274f 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -838,6 +838,35 @@ Now, the binding :states '(normal insert) (kbd "M-d") #'+text/delete-till-sentence) #+end_src +** PDF +PDFs are a great format for (somewhat) immutable text and reports with +great formatting options. Though Emacs isn't really the premier +solution for viewing PDFs (I highly recommend [[https://pwmt.org/projects/zathura/][Zathura]]), similar to +most things with Emacs, having a PDF viewer builtin can be a very +useful asset. + +For example if I were editing an org document which I was eventually +compiling into a PDF, my workflow would be much smoother with a PDF +viewer within Emacs that I can open on another pane. + +Furthermore many governmental studies and essays use the PDF +format. If I were to be analysing them in a study or project (for +example, programming a tool using data from them), which I will most +definitely be using Emacs for, having a PDF pane open for occasional +viewing can be very useful. + +*** PDF Tools +=pdf-tools= provides the necessary functionality for viewing +PDFs. There is no PDF viewing without this package. =evil-collection= +provides a setup for this mode, so use that. +#+begin_src emacs-lisp +(use-package pdf-tools + :after evil-collection + :mode ("\\.[pP][dD][fF]" . pdf-view-mode) + :config + (pdf-tools-install) + (evil-collection-pdf-setup)) +#+end_src * Org ** Org default with evil Setup for org mode, currently basically nothing. Has evil-org for -- cgit v1.2.3-13-gbd6f