summary refs log tree commit diff
diff options
context:
space:
mode:
-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