emacs list-buffers行为 [英] emacs list-buffers behavior

查看:93
本文介绍了emacs list-buffers行为的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在GNU emacs中,每次我碰到 Ctrl-x Ctrl-b 来查看我的所有缓冲区时,窗口被分割以显示缓冲区列表,或者如果我的窗口已经被分割2(例如,我将在下面的窗口中运行一个shell),缓冲区列表出现在另一个窗口中。

In GNU emacs, every time I hit Ctrl-x Ctrl-b to see all of my buffers, the window is split to show the buffer list, or if I have my window already split in 2 (for instance, I will have a shell running in the lower window), the buffer list appears in the other window.

我想要的行为是缓冲区列表出现在我的活动窗口中,以便我可以选择我想要的缓冲区,并继续在同一个窗口中工作,而不是到 Ctrl-x Ctrl-o 到另一个缓冲区,选择缓冲区(使用输入)并在另一个窗口中编辑该缓冲区...我已经google了但它似乎不是一个共同的愿望?我想知道有没有人有Elispy(或其他)解决方案?

My desired behavior is for the buffer list to appear in my active window so that I can select the buffer I want and continue to working in the same window, rather than having to Ctrl-x Ctrl-o to the other buffer, selecting the buffer (with enter) and editing that buffer in the other window... I've googled for it but it doesn't seem to be a common desire? I wonder if anyone has an elispy (or other) solution?

推荐答案

你可能想重新绑定 Cx Cb < kbd>调用缓冲区菜单而不是 list-buffers

You might want to rebind C-x C-b to invoke buffer-menu rather than list-buffers:

(global-set-key "\C-x\C-b" 'buffer-menu)

这篇关于emacs list-buffers行为的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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