summary refs log tree commit diff
diff options
context:
space:
mode:
authorCrazazy2022-05-10 09:28:01 +0200
committerCrazazy2022-05-10 09:28:01 +0200
commit10eed68f8d226303fcb70c72268034001127d57b (patch)
tree9d190e9d1b427f4782abb681380a1578f0a642cb
parent7f8b301a4453f9fffa249ea0d22485cd6b882bd1 (diff)
auto-enable pdf-view-mode for pdf-tools
-rw-r--r--emacs.org4
1 files changed, 2 insertions, 2 deletions
diff --git a/emacs.org b/emacs.org
index a2a42f9..3d6e7cf 100644
--- a/emacs.org
+++ b/emacs.org
@@ -312,8 +312,8 @@ Also, if you just stumbled accross this at random, there is an easy tangle butto
     I don't want to be at the mercy of my browser to figure out how to read a PDF
     #+begin_src emacs-lisp :tangle emacsconfig/extras.el
       (use-package pdf-tools
-        :mode
-        "\\.pdf$")
+        :config
+        (add-to-list 'auto-mode-alist '("\\.pdf$" . pdf-view-mode)))
     #+end_src
 ** Programming-related emacs tools
    I do computer science, so from now and then I tend to program a bit. Here are all the tools I use to accomplish