Homepage: https://github.com/ultronozm/doc-view-follow.el
Author: Paul D. Nelson
Updated:
Synchronize windows showing the same document
doc-view-follow.el provides a convenient way to synchronize page navigation between multiple windows displaying the same document (PS/PDF/DVI/DjVu, etc.). It is essentially an analogue of the built-in `follow-mode', but for document buffers rather than text buffers. With `doc-view-follow-mode' enabled, navigating pages in one window automatically adjusts the other windows to show adjacent pages. In particular, this allows a "book view" where the document is shown in two side-by-side windows on consecutive pages. `doc-view-mode' (built-in to Emacs) and `pdf-view-mode' (from pdf-tools) are supported Usage: - Enable globally: M-x global-doc-view-follow-mode - Enable locally: M-x doc-view-follow-mode Once activated, split your Emacs frame (e.g., vertically with \\[split-window-right]) and open your document in both windows. Navigating with standard commands (like 'n' for next page and 'p' for previous page) in one window automatically synchronizes the view in the other. Setting the user option `doc-view-follow-hijack' to non-nil will hijack `follow-mode' in document buffers, so that it delegates to `doc-view-follow-mode' automatically.