Favor bookmark' and desktop' over uninstalled `saveplace-pdf-view'

This commit is contained in:
Gerard Vermeulen 2023-12-12 11:10:28 +01:00
parent 26a713a4eb
commit 4e7e9d2d1a

View File

@ -253,7 +253,6 @@ recommendation of [[info:emacs#Saving Customizations][saving customizations (inf
mode-line-compact 'long
next-error-message-highlight t
recentf-mode t
save-place-mode t
scroll-bar-mode nil
tab-always-indent 'complete
tab-width 8
@ -2011,18 +2010,16 @@ Listing [[lst:configure-nov]] configures [[https://depp.brause.cc/nov.el/][nov.e
The [[https://github.com/vedang/pdf-tools][pdf-tools]] package exploits the [[https://github.com/freedesktop/poppler][poppler]] library to render and to let you
annotate [[https://en.wikipedia.org/wiki/PDF][PDF]] files. It also exploits the [[https://wiki.contextgarden.net/SyncTeX][SyncTeX]] library to link anchors in [[https://en.wikipedia.org/wiki/PDF][PDF]]
files produced with LaTeX to the original LaTeX sources. The [[https://github.com/nicolaisingh/saveplace-pdf-view#readme][saveplace-pdf-view]]
package saves =pdf-view= and =doc-view= places.
In order to use [[https://github.com/vedang/pdf-tools][pdf-tools]], you have to type {{{kbd(M-x pdf-tools-install)}}} after
installation of [[https://github.com/vedang/pdf-tools][pdf-tools]] from [[https://melpa.org/][MELPA]] or after each update of [[https://github.com/freedesktop/poppler][poppler]] to build or
rebuild the =epdfinfo= executable that serves the [[https://en.wikipedia.org/wiki/PDF][PDF]] files to Emacs.
files produced with LaTeX to the original LaTeX sources. In order to use
[[https://github.com/vedang/pdf-tools][pdf-tools]], you have to type {{{kbd(M-x pdf-tools-install)}}} after installation
of [[https://github.com/vedang/pdf-tools][pdf-tools]] from [[https://melpa.org/][MELPA]] or after each update of [[https://github.com/freedesktop/poppler][poppler]] to build or rebuild the
=epdfinfo= executable that serves the [[https://en.wikipedia.org/wiki/PDF][PDF]] files to Emacs.
#+caption[Setup =pdf-tools=]:
#+caption: Setup =pdf-tools=.
#+name: lst:setup-pdf-tools
#+begin_src emacs-lisp -n
(when (and (ensure-package-installation 'pdf-tools 'saveplace-pdf-view)
(when (and (ensure-package-installation 'pdf-tools)
(fboundp 'pdf-loader-install))
;; `pdf-loader-install' is the lazy equivalent of `pdf-tools-install':
;; see the README file.
@ -2036,8 +2033,7 @@ rebuild the =epdfinfo= executable that serves the [[https://en.wikipedia.org/wik
(with-eval-after-load 'pdf-view
(setopt pdf-view-display-size 'fit-page
pdf-view-use-scaling (eq system-type 'darwin))
(require 'saveplace-pdf-view nil 'noerror)))
pdf-view-use-scaling (eq system-type 'darwin))))
#+end_src
* Writing