22

Is there a way to reflect the navigation commands in the current window in another visible window. I have two related LaTeX files displayed in two windows and would like to scroll through them simultaneously to get an overview of the differences. I currently use a macro to automate scrolling in one buffer, moving to the other window, and scrolling and then moving back.

Ediff has an inbuilt way of doing this in ediff-scroll-vertically bound to v , so I was wondering if emacs already has one built in. Ideally I would like a minor mode that mirrors navigation in all visible windows.

24

M-x scroll-all-mode does exactly that.

You can also refer to the emacs wiki on scroll-all-mode and how to make synchronized scrolling work with mouse scrolling.

  • This doesn't quite work with Evil mode especially if you jump around from line to line, the scrolling becomes un-synchronized. – A. Blizzard Jun 14 at 21:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.