如何找到位置,emacs lisp函数绑定到键的位置?

2024-01-06

I'm trying to figure out where M-m is bound to back-to-indentation function. When I issue C-h k M-m (describe-key), I get the following output

M-m 运行命令 back-to-indentation,这是一个交互式命令 在“ Simple.el”中编译了LISP功能。

它绑定到M-m。

(回到缩进)

将指针移至该行的第一个非空白字符。

当我看着simple.el,我只看到函数的定义back-to-indentation。我搜索了整个文件,但没有看到使用该函数完成任何键绑定define-key。我假设它发生在其他地方。

How can I identify the location where the function is bound to M-m key?

Emacs版本:GNU Emacs 24.2.1(x86_64-apple-darwin12.2.0,NS apple-appkit-1187.34)


我不知道这通常是否可行,但我的猜测是 Emacs 不记得定义给定键的代码在哪里。

C-hb will show the current bindings, from which you can establish which keymap you're interested in, and work from there. For most major or minor mode maps, it won't be too difficult to find the code.

您的具体示例是 Emacs 配置的全局绑定bindings.el.

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

如何找到位置,emacs lisp函数绑定到键的位置? 的相关文章

随机推荐