Skip to content

nicolaisingh/saveplace-pdf-view

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 

Repository files navigation

saveplace-pdf-view

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.

Installation

MELPA

If you use MELPA, run:

M-x package-install saveplace-pdf-view

Manual

Save a copy of the code locally, and add it to your load-path.

Usage

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)

Similar Packages

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 through save-place, an Emacs built-in for saving and restoring “places” you visit.

About

Save place in pdf-view buffers for Emacs

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •