From 697e3be41beb3eb7e55f7de2085248f11bd9a762 Mon Sep 17 00:00:00 2001 From: noa Date: Fri, 15 Nov 2024 03:07:09 +0800 Subject: Properly configure pdf-tools --- emacs/init.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/emacs/init.el b/emacs/init.el index bd52da8..729f9b1 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -827,7 +827,11 @@ The misspelled word is taken from OVERLAY. WORD is the corrected word." frame-resize-pixelwise t) (use-package pdf-tools - :ensure t) + :when (display-graphic-p) + :ensure t + :magic ("%PDF" . pdf-view-mode) + :config + (pdf-tools-install :no-query)) (use-package webjump :custom -- cgit 1.4.1-2-gfad0