如何调用Emacs中的缓冲区列表 [英] How to invoke the buffer list in Emacs

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

问题描述

我通常在Emacs中键入 M-x 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 press TAB (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 say f12 — 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 and C-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屋!

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