saveplace-pdf-view
extends the built-in mode save-place
by adding
support for pdf-view (see pdf-tools) and DocView buffers. This
package will store the place (e.g. the current page and zoom) of PDF
buffers under pdf-view-mode
or doc-view-mode
, and revisiting those
PDF files later using the same mode will restore the saved place.
If you use MELPA, run:
M-x package-install saveplace-pdf-view
Save a copy of the code locally, and add it to your load-path
.
Simply require the package in your init file, and make sure
save-place
is enabled.
(require 'saveplace-pdf-view)
(save-place-mode 1)
If you intend to use this package with doc-view-mode
, you may
need to load the bookmark
package as well:
(require 'bookmark)
(require 'saveplace-pdf-view)
(save-place-mode 1)
If you know of other packages, please let me know so I can include them here.
- pdf-view-restore (Link):
- From code review (commit 5a1947c): For each PDF file you visit in
Emacs,
pdf-view-restore
will persist the last viewed page in a separate file. This file is stored relative to the PDF file location. saveplace-pdf-view
(this package) persists other information like the scale amount and scroll position in addition to the last viewed page of the PDF file. It saves those information throughsave-place
, an Emacs built-in for saving and restoring “places” you visit.
- From code review (commit 5a1947c): For each PDF file you visit in
Emacs,