From f98faccad2e282c54ce4c42b595a8987b82d13e4 Mon Sep 17 00:00:00 2001 From: Mountain Man <43313373+MountainMan1312@users.noreply.github.com> Date: Fri, 27 Oct 2023 21:22:35 -0400 Subject: Open PDFs directly into `pdf-view-mode` with dark theme --- init.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index 12318e2..911e3bb 100644 --- a/init.el +++ b/init.el @@ -834,11 +834,15 @@ (use-package pdf-tools :straight t :config + (add-to-list 'auto-mode-alist '("\\.pdf\\'" . pdf-view-mode)) (setq pdf-view-use-imagemagick t pdf-view-use-scaling nil doc-view-resolution 300 pdf-view-midnight-colors - `(,mm/pdf-view-midnight-foreground . ,mm/pdf-view-midnight-background))) + `(,mm/pdf-view-midnight-foreground . ,mm/pdf-view-midnight-background)) + :hook (pdf-view-mode . pdf-view-themed-minor-mode)) + + -- cgit v1.2.3