PDF Tools

about | blog | config | notes | github

PDF Tools is a replace for the inbuilt DocView mode in GNU/Emacs.

1. Configuration

Other than installing pdf-tools, we also add a hook to enable night mode by default and configure the night mode's colors.

(use-package pdf-tools
  :hook (pdf-tools-enabled . pdf-view-midnight-minor-mode)
  :custom
  (pdf-view-midnight-colors
   `(,(face-attribute 'default :foreground) . ,(face-attribute 'default :background)))
  :init (pdf-tools-install))

Don't forget to provide this file…

(provide 'init-pdf-tools)

Created: 2021-11-13

Emacs 26.1 (Org mode 9.5)