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.

1 Answer 1


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.

  • 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, 2019 at 21:33
  • It'd be awesome to have something a bit more robust.
    – e18r
    Aug 6, 2021 at 15:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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