From 294a4daca701c1b29eddc5ce7865de91bed16b55 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Sun, 3 Jan 2021 19:56:17 -0600 Subject: Add PDF Tools --- config.org | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/config.org b/config.org index 9a78b97..e511c8d 100644 --- a/config.org +++ b/config.org @@ -5,7 +5,7 @@ #+EXPORT_FILE_NAME: README.md #+OPTIONS: toc:nil #+BANKRUPTCY_COUNT: 3.2 -#+Time-stamp: <2021-01-03 08:49:40 acdw> +#+Time-stamp: <2021-01-03 14:46:41 acdw> * Basics @@ -1519,6 +1519,22 @@ I’ve put org mode under Applications, as opposed to Writing, because it’s m (define-key beancount-mode-map (kbd "M-p") #'outline-previous-visible-heading) #+end_src +** PDF Tools + +I’m only enabling this at home for now, since it requires building stuff. + +#+begin_src emacs-lisp + (defun acdw/disable-visual-fill-column-mode () + "Disable `visual-fill-column-mode'." + (visual-fill-column-mode -1)) + + (when (memq system-type '(gnu/linux)) + (straight-use-package 'pdf-tools) + (pdf-loader-install) + + (add-hook 'pdf-view-mode-hook #'acdw/disable-visual-fill-column-mode)) +#+end_src + * Appendices ** Emacs' files -- cgit 1.4.1-21-gabe81