# HG changeset patch # User Jordi GutiƩrrez Hermoso # Date 1688512985 14400 # Node ID 0ef9d5be5151544c9d0e51039015377b7f6e6cf1 # Parent 59d84b7c161592cd1d9a1bae4af0cea33ff61840 pdf: make sure pdfs are viewable in dark mode diff --git a/dotemacs.el b/dotemacs.el --- a/dotemacs.el +++ b/dotemacs.el @@ -26,7 +26,9 @@ (elpy-enable) - +(pdf-tools-install) +;; Let's make sure that pdfs always have a pleasantly dark complexion +(add-hook 'pdf-view-mode-hook 'pdf-view-midnight-minor-mode) ;; I want sql-mode to have a couple of extra bells and whistles. ;; Indentation and upcasing of keywords. @@ -218,6 +220,7 @@ ("\\.php\\'" . web-mode) ;; Default php mode isn't as good ("\\.?hgrc\\'" . conf-mode) ("\\.spec\\'" . rpm-spec-mode) + ("\\.pdf\\'" . pdf-view-mode) ("hg-editor-[a-z0-9A-Z]+.commit\\.hg\\.txt\\'" . diff-mode) ("evo[A-Z0-9]\\{6\\}\\'" . mail-mode)) auto-mode-alist))