显示以特定键开头的Emacs键绑定 [英] Show Emacs keybindings which start with a particular key

查看:103
本文介绍了显示以特定键开头的Emacs键绑定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已阅读这个,但我的问题是不同的。我想知道如何使用特定的键查看Emacs中的键绑定。我想绑定 f2 ,但是想知道它当前的绑定。按 C-h m 提示键序列。输入 f2 这里导致Emacs等待我完成链,因为 f2 单独没有。如何查看使用 f2 的所有键绑定?

I've read this, but my question is different. I'd like to know how to view key-bindings in Emacs which start with a particular key. I'd like to bind f2, but would like to know what it's currently bound to. Pressing C-h m prompts for the key sequence. Entering f2 here results in Emacs waiting for me to complete the chain, as f2 alone does nothing. How can I view all key-bindings which start with f2?

推荐答案

F2 F1 F2 Ch

通常,在任何前缀绑定后键入 F1 Ch 将列出使用该前缀的所有绑定:

In general, typing F1 or C-h after any prefix-binding will list all the bindings using that prefix:


describe-prefix-bindings
帮助中的交互式编译Lisp函数。 el

描述用于达到此命令的前缀的绑定。
描述的前缀包含所有运行此命令的键序列的最后一个事件

Describe the bindings of the prefix used to reach this command. The prefix described consists of all but the last event of the key sequence that ran this command.

F1 是更可靠的两个(但只有非常稍微如此),如以下文档摘录所详述。

F1 is the more reliable of the two (but only very slightly so), as detailed by the following documentation excerpts.

M - : (info(emacs)Misc Help) RET


您可以通过键入 Ch (<$ c $)获取特定前缀键的子命令列表c> describe-prefix-bindings )。 (有几个前缀键,它不起作用 - 那些为 Ch 提供自己的绑定的前缀键,其中之一是< ESC> ; ,因为< ESC> Ch 实际上是 CMh ,这标志着一个defun。 )

You can get a list of subcommands for a particular prefix key by typing C-h (describe-prefix-bindings) after the prefix key. (There are a few prefix keys for which this does not work--those that provide their own bindings for C-h. One of these is <ESC>, because <ESC> C-h is actually C-M-h, which marks a defun.)

M - : (info(emacs)Keys) RET


键入帮助字符( Ch < F1> )后,前缀键显示从该前缀开始的命令的列表。这个规则的唯一例外是< ESC> < ESC> C-h 相当于 C-M-h ,这完全是其他的东西。但是,您可以使用< F1> 显示以< ESC> 开头的命令列表。 / p>

Typing the help character (C-h or <F1>) after a prefix key displays a list of the commands starting with that prefix. The sole exception to this rule is <ESC>: <ESC> C-h is equivalent to C-M-h, which does something else entirely. You can, however, use <F1> to display a list of commands starting with <ESC>.

M - : (info(emacs)Help) RET


Ch < F1> 也意味着在各种其他上下文中的帮助。对于
实例,您可以在前缀键之后键入以查看可以跟随前缀键的
键的列表。 (几个前缀键不支持
Ch ,因为它们定义了其他含义,但是
都支持< F1> 寻求帮助。)

C-h or <F1> means "help" in various other contexts as well. For instance, you can type them after a prefix key to view a list of the keys that can follow the prefix key. (A few prefix keys don't support C-h in this way, because they define other meanings for it, but they all support <F1> for help.)

M - : (info(elisp)Key Binding Conventions) RET


不要按照任何前缀字符(包括 Cc )绑定 Ch

如果您不绑定 Ch ,它将自动作为帮助字符列出前缀字符的子命令。

Don't bind C-h following any prefix character (including C-c).
If you don't bind C-h, it is automatically available as a help character for listing the subcommands of the prefix character.

这篇关于显示以特定键开头的Emacs键绑定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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