diff options
-rw-r--r-- | init.el | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -740,8 +740,19 @@ | |||
740 | ;; Stuff for working with PDF files | 740 | ;; Stuff for working with PDF files |
741 | ;; --------------------------------- | 741 | ;; --------------------------------- |
742 | 742 | ||
743 | (defvar mm/pdf-view-midnight-foreground (face-attribute 'default :foreground) | ||
744 | "FOREGROUND to be used by `pdf-view-midnight-colors'.") | ||
745 | |||
746 | (defvar mm/pdf-view-midnight-background (face-attribute 'default :background) | ||
747 | "BACKGROUND to be used by `pdf-view-midnight-colors'.") | ||
748 | |||
743 | (use-package pdf-tools | 749 | (use-package pdf-tools |
744 | :straight t) | 750 | :straight t |
751 | :config | ||
752 | (setq pdf-view-use-scaling nil | ||
753 | doc-view-resolution 144 | ||
754 | pdf-view-midnight-colors | ||
755 | `(,mm/pdf-view-midnight-foreground . ,mm/pdf-view-midnight-background))) | ||
745 | 756 | ||
746 | 757 | ||
747 | 758 | ||