Display duplicate sequential page files on Emacs split screen

I did this before, many years ago, so I know that there is an answer. However, the google space is heavily contaminated with namespace conflicts, especially the new user manuals.

This is what I would like to do in Emacs 21:

Split the screen into the specified file buffer (Cx 3). When I view the first screen (Cv), the next page of the file is automatically displayed on the second.

To be clear, the next line in the file after the last line on the left screen should always be the first line on the right screen.

Any help?

+3
source share
4 answers

Do you want to scroll-all-mode

scroll-all-mode is an interactive compiled Lisp function in `scroll-all.el'.
(scroll-all-mode &optional arg)

Toggle Scroll-All minor mode.
With arg, turn Scroll-All minor mode on if arg is positive, off otherwise.
When Scroll-All mode is on, scrolling commands entered in one window
apply to all visible windows in the same frame.

, scroll-all-mode,

+3

,

, .

+7

, , -

(defun align-windows ()
  (set-window-start (other-window) (window-start))
  (scroll-other-window))

( ) C-v, C-v , .

+2

Source: https://habr.com/ru/post/1711274/


All Articles