summary refs log tree commit diff
path: root/emacs/init.el
diff options
context:
space:
mode:
authornoa2024-11-15 03:07:09 +0800
committernoa2024-11-15 03:07:09 +0800
commit697e3be41beb3eb7e55f7de2085248f11bd9a762 (patch)
treecfad21bfe00ff06ca0badb0d5db5e205a04117b2 /emacs/init.el
parent27f487d06eb8adb0456b47827158eddb0c89fd14 (diff)
Properly configure pdf-tools HEAD main
Diffstat (limited to 'emacs/init.el')
-rw-r--r--emacs/init.el6
1 files changed, 5 insertions, 1 deletions
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