如何调用Emacs中的缓冲区列表 [英] How to invoke the buffer list in Emacs
问题描述
buffer-menu
来切换缓冲区。如何用较短的命令来做到这一点?其相当长的字符串键入。 谢谢!
-
您可以使用
Cx b
来更改缓冲区。您必须输入缓冲区名称的前几个字母,当然可以使用完成。如果您按TAB
(Emacs中最有用的键),则会显示一个列表(匹配)缓冲区。您可以点击此列表切换到缓冲区。 -
您可以将
缓冲区菜单
绑定到关键。选择一个不用于另一个命令的键 - 让我们说f12
- 并将以下行添加到文件〜/ .emacs
:(global-set-key(kbd< f12>)'buffer-menu)
-
还有许多其他接口可以改变Emacs中的缓冲区,并且它们可以比
Cx b
和Cx Cb
。由于这往往是一个非常个人的选择,我建议您尝试一些,并保持你感到最舒适的一个。
I usually type M-x buffer-menu
to switch buffers in Emacs. How can I do this with a shorter command? Its quite a long string to type.
Thanks!
You can use
C-x b
to change buffers. You have to enter the first few letters of the buffer name, and of course you can use completion. If you pressTAB
(the most useful key in Emacs), a list of (matching) buffers appears. You can click in this list to switch to a buffer.You can bind
buffer-menu
to a key. Pick a key that's not used for another command — let's sayf12
— and add the following line to the file~/.emacs
:(global-set-key (kbd "<f12>") 'buffer-menu)
There are many other interfaces to changing buffers in Emacs, and they can be significantly more efficient than
C-x b
andC-x C-b
. Since this tends to be a very personal choice, I recommend you experiment with a few and keep the one(s) you feel most comfortable with.
这篇关于如何调用Emacs中的缓冲区列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!