Install and configure pdf-view-restore

This commit is contained in:
Gerard Vermeulen 2021-12-07 05:45:38 +01:00
parent 8bcb321bbc
commit 374a17e15b

View File

@ -198,6 +198,7 @@ not load the ~custom-file~ as [[info:emacs#Saving Customizations][saving customi
marginalia ; minibuffer margin notes
orderless ; Emacs completion style
pdf-tools ; interactive docview replacement
pdf-view-restore ; add view history to pdf-tools
pyenv-mode ; Python environment selector
quelpa ; install Emacs packages from source
vertico)) ; VERTical Interactive Completion
@ -576,6 +577,10 @@ or rebuild the =epdfinfo= executable that serves the [[https://en.wikipedia.org/
(when (fboundp 'pdf-tools-install)
(autoload 'pdf-view-mode "pdf-view")
(add-to-list 'magic-mode-alist '("%PDF" . pdf-view-mode)))
(with-eval-after-load 'pdf-tools
(when (fboundp 'pdf-view-restore-mode)
(add-hook 'pdf-view-mode-hook #'pdf-view-restore-mode)))
#+end_src
* Writing