开发者

Opening definition of Emacs command

开发者 https://www.devze.com 2023-02-12 22:59 出处:网络
is it possible to open in ema开发者_如何学Ccs elisp file with command definition, to see, how it is defined?Yes you can call M-x find-function

is it possible to open in ema开发者_如何学Ccs elisp file with command definition, to see, how it is defined?


Yes you can call M-x find-function

Some functions are implemented in C. To be able to find C function you have to download C sources (if you have not yet done so) and add the following line to your .emacs

(setq find-function-C-source-directory "/path/to/c-source")


Another way:

C-h f foo RET to see the documentation for the function foo.

The documentation will tell you, on the first line, where and how the function is defined. Click the link (or hit RET with cursor on it) to the source file where the command is defined. You have to have the Lisp sources (for Lisp code) or the C sources (for C code) installed on your system in order for this to work.

You can also start from a key, without knowing what its command is: C-h k.

0

精彩评论

暂无评论...
验证码 换一张
取 消