Emacs - 多列一个缓冲区 [英] Emacs - Multiple columns one buffer

查看:117
本文介绍了Emacs - 多列一个缓冲区的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试编辑一些汇编代码,这些汇编代码在长而薄的列表中往往被格式化。我想要能够使用我拥有的一些英亩的水平空间,同时在屏幕上看到更多的代码。有没有办法让Emacs(或者另一个编辑器)显示我指向同一个缓冲区的多个列?

I'm trying to edit some assembly code which tends to be formatted in long but thin listings. I'd like to be able to use some of the acres of horizontal space I have and see more code on-screen at one time. Is there a method for getting Emacs (or indeed another editor) to show me multiple columns all pointing to the same buffer?

Cx 3(emacs)和:vsplit(vim )对代码中的多个单独的视图很好,但是我希望它从一列流到另一列(如报纸中的文本)。

C-x 3 (emacs) and :vsplit (vim) are great for multiple separate views into the code, but I'd like it to flow from one column to the other (like text in a newspaper).

推荐答案

请参阅追踪模式
摘录:

See follow-mode. Excerpt:


跟随模式是一种次要模式,使两个窗口都显示相同的缓冲区,滚动为单个高虚拟窗口要使用跟随模式,只需一个窗口,即可使用Cx 3将其拆分成两个并排窗口,然后键入Mx跟随模式。从那时起,您可以编辑两个窗口中的任一个缓冲区,或者滚动任一个;另一个窗口跟随它。

在跟随模式下,如果将点移动到一个窗口中可见的部分之外,并移动到另一个窗口中可见的部分,则再次选择另一个窗口,将它们视为一个大窗口。
Follow mode is a minor mode that makes two windows, both showing the same buffer, scroll as a single tall "virtual window." To use Follow mode, go to a frame with just one window, split it into two side-by-side windows using C-x 3, and then type M-x follow-mode. From then on, you can edit the buffer in either of the two windows, or scroll either one; the other window follows it. In Follow mode, if you move point outside the portion visible in one window and into the portion visible in the other window, that selects the other window—again, treating the two as if they were parts of one large window.

这篇关于Emacs - 多列一个缓冲区的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆