From 3c4cecc604e839bb2644437a14ed4089dcd3ec02 Mon Sep 17 00:00:00 2001 From: Mountain Man <43313373+MountainMan1312@users.noreply.github.com> Date: Mon, 10 Jul 2023 22:19:49 -0400 Subject: Make `pdf-view-midnight-colors` match Emacs theme --- init.el | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index a9bc4b3..8cd09b9 100644 --- a/init.el +++ b/init.el @@ -740,8 +740,19 @@ ;; Stuff for working with PDF files ;; --------------------------------- +(defvar mm/pdf-view-midnight-foreground (face-attribute 'default :foreground) + "FOREGROUND to be used by `pdf-view-midnight-colors'.") + +(defvar mm/pdf-view-midnight-background (face-attribute 'default :background) + "BACKGROUND to be used by `pdf-view-midnight-colors'.") + (use-package pdf-tools - :straight t) + :straight t + :config + (setq pdf-view-use-scaling nil + doc-view-resolution 144 + pdf-view-midnight-colors + `(,mm/pdf-view-midnight-foreground . ,mm/pdf-view-midnight-background))) -- cgit v1.2.3