diff options
author | Mountain Man <43313373+MountainMan1312@users.noreply.github.com> | 2023-10-27 21:22:35 -0400 |
---|---|---|
committer | Mountain Man <43313373+MountainMan1312@users.noreply.github.com> | 2023-10-27 21:22:35 -0400 |
commit | f98faccad2e282c54ce4c42b595a8987b82d13e4 (patch) | |
tree | 6863b8d7c4aa4013cc2c541ce16d302e03c2b64e /init.el | |
parent | Add package `dired-hacks` (diff) | |
download | mmosmacs-f98faccad2e282c54ce4c42b595a8987b82d13e4.tar.gz mmosmacs-f98faccad2e282c54ce4c42b595a8987b82d13e4.tar.bz2 mmosmacs-f98faccad2e282c54ce4c42b595a8987b82d13e4.zip |
Open PDFs directly into `pdf-view-mode` with dark theme
Diffstat (limited to 'init.el')
-rw-r--r-- | init.el | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -834,11 +834,15 @@ | |||
834 | (use-package pdf-tools | 834 | (use-package pdf-tools |
835 | :straight t | 835 | :straight t |
836 | :config | 836 | :config |
837 | (add-to-list 'auto-mode-alist '("\\.pdf\\'" . pdf-view-mode)) | ||
837 | (setq pdf-view-use-imagemagick t | 838 | (setq pdf-view-use-imagemagick t |
838 | pdf-view-use-scaling nil | 839 | pdf-view-use-scaling nil |
839 | doc-view-resolution 300 | 840 | doc-view-resolution 300 |
840 | pdf-view-midnight-colors | 841 | pdf-view-midnight-colors |
841 | `(,mm/pdf-view-midnight-foreground . ,mm/pdf-view-midnight-background))) | 842 | `(,mm/pdf-view-midnight-foreground . ,mm/pdf-view-midnight-background)) |
843 | :hook (pdf-view-mode . pdf-view-themed-minor-mode)) | ||
844 | |||
845 | |||
842 | 846 | ||
843 | 847 | ||
844 | 848 | ||