如何使窗口移动命令忽略某个窗口?
所以我通常在 Emacs 中打开 3 个缓冲区。
- 我正在编写的实际代码的一个缓冲区。
- 用于对所述代码进行单元测试的一个缓冲区。
- 第三个缓冲区显示单元测试的结果。这个缓冲区就应运而生了 当我运行单元测试 Cx SPACE 时,它位于其他两个缓冲区下方。
如何禁用第三个缓冲区,以便当我按 Cx o 时,我只在缓冲区 1 和缓冲区 2 之间切换?目前,我在缓冲区 1、缓冲区 2、缓冲区 3、缓冲区 1 之间切换,等等。具体来说,我希望 Cx o 仅在缓冲区 1 和缓冲区 2 之间切换。
谢谢。
So I generally have 3 buffers open in Emacs.
- One buffer for the actual code I am writing.
- One buffer for the unit test for said code.
- A third buffer that displays the results of the unit test. This buffer comes into being
below the two other buffers when I run my unit test C-x SPACE.
How do I disable this third buffer such that when I press C-x o I am only switching between buffer 1 and buffer 2? Currently, I switch between buffer 1, then buffer 2, then buffer 3, then buffer 1, etc. To be specific, I want C-x o to only switch between buffer 1 and 2.
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
对此的一般解决方案(可以看起来)类似于以下内容:
将变量自定义为与要跳过的缓冲区名称匹配的正则表达式。
A general solution to this (can look) something like the following:
Customize the variable to be a regular expression matching the buffer names you want to skip.
特雷的答案将完全符合你的要求(至少看起来会如此;我还没有尝试过)。更通用的解决方案是将
swbuff
与swbuff-x
或我自己的swbuff-advice
一起使用。有关这三者的信息可以在 Emacs Wiki swbuff 页面 上找到。Trey's answer will do exactly what you want (at least it looks like it will; I haven't tried it). A more generic solution would be to use
swbuff
with eitherswbuff-x
or my ownswbuff-advice
. Info about all three can be found on the Emacs Wiki swbuff page.