Let pdf-tools scale the page size to the display size
This commit is contained in:
parent
5ea766e3d7
commit
fc2a31d20c
@ -906,12 +906,15 @@ rebuild the =epdfinfo= executable that serves the [[https://en.wikipedia.org/wik
|
|||||||
#+caption: Enable =pdf-tools=.
|
#+caption: Enable =pdf-tools=.
|
||||||
#+name: lst:enable-pdf-tools
|
#+name: lst:enable-pdf-tools
|
||||||
#+begin_src emacs-lisp
|
#+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.
|
;; see the README file.
|
||||||
(when (fboundp 'pdf-loader-install)
|
(when (fboundp 'pdf-loader-install)
|
||||||
(pdf-loader-install))
|
(pdf-loader-install))
|
||||||
|
|
||||||
(with-eval-after-load 'pdf-view
|
(with-eval-after-load 'pdf-view
|
||||||
|
(custom-set-variables
|
||||||
|
'(pdf-view-display-size 'fit-page))
|
||||||
|
|
||||||
(when (fboundp 'pdf-view-restore-mode)
|
(when (fboundp 'pdf-view-restore-mode)
|
||||||
(add-hook 'pdf-view-mode-hook #'pdf-view-restore-mode)))
|
(add-hook 'pdf-view-mode-hook #'pdf-view-restore-mode)))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
Loading…
x
Reference in New Issue
Block a user