summaryrefslogtreecommitdiff
path: root/init.el
diff options
context:
space:
mode:
authorLLoyderino <adrijan.bjedov@gmail.com>2025-08-29 18:45:53 +0200
committerLLoyderino <adrijan.bjedov@gmail.com>2025-08-31 09:23:20 +0200
commit06c2da78af865488220b4be0b46c67697d223e20 (patch)
treee8ab965c1dc3bf3bcf655c866548cd60e3cbbe20 /init.el
parent473cf8b6dfd027b7313a4cf4b830bcf38d1cd4fd (diff)
Open PDFs in view mode by default
Diffstat (limited to 'init.el')
-rw-r--r--init.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/init.el b/init.el
index 78a5b99..be0f2f8 100644
--- a/init.el
+++ b/init.el
@@ -104,7 +104,10 @@
:init (add-hook 'after-init-hook #'marginalia-mode))
;; pdf-tools
-(use-package pdf-tools)
+(use-package pdf-tools
+ :config
+ ;; Let's face it, I'll be more likely reading PDFs than editing 😉
+ (add-to-list 'auto-mode-alist '("\\.pdf\\'" . pdf-view-mode)))
;; Magit
(use-package magit)