2009-06-25 41 views
3

我以前做过这些,多年前,所以我知道答案就在那里。然而谷歌空间严重受到命名空间冲突的污染,特别是新的用户指南。在Emacs分割屏幕上显示相同的文件连续页面

这是我想在Emacs 21做什么:

拆分给定文件缓存(C-×3)屏幕。 当我浏览第一个屏幕(C-v)时,文件的下一页将自动显示在第二个屏幕上。

要清楚,左侧屏幕最后一行之后的文件中的下一行应始终是右侧屏幕上的第一行。

任何帮助?

+0

出于好奇:为什么你想这样做,而不是只保持一个窗口? – 2009-06-25 14:59:59

+0

因此,我可以同时看到同一文件的两倍,而不必使用C-x o并且调用相同缓冲区的其他窗口。 – kmarsh 2009-06-25 15:12:04

回答

3

你想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. 

设置Windows适当,然后打开scroll-all-mode,并从那时起所有窗口滚动起来

7

你可能会寻找后续模式

将窗口合并到一个高虚拟窗口中是次要模式。

2

如果后续模式不起作用,你可以定义自己的宏,像

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

然后,使用这个(与向下滚屏一起)代替了Cv,或重新绑定简历的是,或者添加 建议向下滚动。

相关问题