gpt4 book ai didi

emacs - 我可以在 emacs 中同步滚动窗口吗?

转载 作者:行者123 更新时间:2023-12-02 05:48:54 29 4
gpt4 key购买 nike

我的意思是,如果我输入 c-x 2,那么为了比较,我希望它在滚动临时窗口时同步滚动另一个窗口。

最佳答案

试试 Follow Mode :

M-x follow-mode

Follow mode is a minor mode that makes two windows, both showing the same buffer, scroll as a single tall “virtual window”.



请注意,跟随模式只能同步包含相同文件的滚动窗口。对于同步滚动不同文件的窗口, here是它的答案。

Follow mode can only synchronize scrolling windows which content a same file. Does it possible to scrolling windows with diffrent files synchronously? – 9307420654

There is a minor mode to apply all scrolling commands to all visible windows in the current frame. Check scroll-all-mode for that. Or else, if you want to scroll together only 2 windows and only when you use a specific keystroke, you can do something like a function that scrolls the current window (scroll-up or scroll-down) and then the “other window” (i.e., the next one in the list of windows), with scroll-other-window (with argument '-, i.e., the symbol “minus”, for scrolling down). Then you can assign this to a keystroke, e.g., C-M-up / down.



scroll-all-mode :

Use M-x scroll-all-mode to scroll multiple buffers together.

Very useful for visually comparing two files which are hard to diff because of lots of trivial changes amongst the changes you are looking for.

关于emacs - 我可以在 emacs 中同步滚动窗口吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33210981/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com