From b619f6a4d3524c92885a3ea5875510e202799190 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Sat, 13 Jan 2024 14:27:11 +0000 Subject: [PATCH] Remove some sections related to pdf-tools (since I don't use it) --- README.org | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/README.org b/README.org index 2c0a98a..014ebd2 100644 --- a/README.org +++ b/README.org @@ -1526,17 +1526,6 @@ Set fill column to 88 and enable display in python buffers ;; to have the buffer refresh after compilation (add-hook 'TeX-after-compilation-finished-functions #'TeX-revert-document-buffer)) - (defun crafted-latex-use-pdf-tools () - "Use PDF Tools instead of docview, requires a build environment - to compile PDF Tools. - - Depends on having `pdf-tools'." - - (with-eval-after-load 'latex - (customize-set-variable 'TeX-view-program-selection '((output-pdf "PDF Tools"))) - (customize-set-variable 'TeX-view-program-list '(("PDF Tools" TeX-pdf-tools-sync-view))) - (customize-set-variable 'TeX-source-correlate-start-server t))) - ;; message the user if the latex executable is not found (defun crafted-writing-tex-warning-if-no-latex-executable () "Print a message to the minibuffer if the \"latex\" executable cannot be found." @@ -1574,16 +1563,4 @@ Set fill column to 88 and enable display in python buffers (customize-set-variable 'markdown-enable-math t) (customize-set-variable 'markdown-enable-html t) (add-hook 'markdown-mode-hook #'conditionally-turn-on-pandoc))) - - ;;; PDF Support when using pdf-tools - (when (locate-library "pdf-tools") - ;; load pdf-tools when going into doc-view-mode - (defun crafted-writing-load-pdf-tools () - "Attempts to require pdf-tools, but for attaching to hooks." - (require 'pdf-tools nil :noerror)) - (add-hook 'doc-view-mode-hook #'crafted-writing-load-pdf-tools) - - ;; when pdf-tools is loaded, apply settings. - (with-eval-after-load 'pdf-tools - (setq-default pdf-view-display-size 'fit-width))) #+end_src