Let pdf-tools scale the page size to the display size

This commit is contained in:
Gerard Vermeulen 2022-02-06 13:01:20 +01:00
parent 5ea766e3d7
commit fc2a31d20c
1 changed files with 4 additions and 1 deletions

View File

@ -906,12 +906,15 @@ rebuild the =epdfinfo= executable that serves the [[https://en.wikipedia.org/wik
#+caption: Enable =pdf-tools=.
#+name: lst:enable-pdf-tools
#+begin_src emacs-lisp
;; 'pdf-loader-install' is the lazy equivalent of 'pdf-tools-install':
;; `pdf-loader-install' is the lazy equivalent of `pdf-tools-install':
;; see the README file.
(when (fboundp 'pdf-loader-install)
(pdf-loader-install))
(with-eval-after-load 'pdf-view
(custom-set-variables
'(pdf-view-display-size 'fit-page))
(when (fboundp 'pdf-view-restore-mode)
(add-hook 'pdf-view-mode-hook #'pdf-view-restore-mode)))
#+end_src