aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2020-08-18 00:47:49 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2020-08-18 00:47:58 +0100
commitae449ded4258651b8adbd88590a2c4bf94811e66 (patch)
treeb76bdebf0d4689f310707db138f1ee9cff72c8bf
parentd47b2807eae6ac70a03739875da11afd7926f11e (diff)
downloaddotfiles-ae449ded4258651b8adbd88590a2c4bf94811e66.tar.gz
dotfiles-ae449ded4258651b8adbd88590a2c4bf94811e66.tar.bz2
dotfiles-ae449ded4258651b8adbd88590a2c4bf94811e66.zip
+pdf-tools config with diatribe for pdfs and why it's good in Emacs
-rw-r--r--Emacs/.config/emacs/config.org29
1 files changed, 29 insertions, 0 deletions
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