29

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.

paprika
  • 1,944
  • 19
  • 26
Vamsi
  • 3,916
  • 22
  • 35

1 Answers1

34

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.

Kaushal Modi
  • 25,203
  • 3
  • 74
  • 179
  • 4
    This doesn't quite work with Evil mode especially if you jump around from line to line, the scrolling becomes un-synchronized. – Arktik Jun 14 '19 at 21:33
  • It'd be awesome to have something a bit more robust. – e18r Aug 06 '21 at 15:25