查看内置emacs包的源代码

Håk*_*and 5 emacs

如何查看内置Emacs包的源代码?例如,给定lisp代码(require 'color),我会对该包提供的功能感兴趣.我用Google搜索emacs "color.el"并找到了源代码.但我想知道这个文件是否可以直接从Emacs内部查看?顺便说一句,find . -name 'color*'

./share/emacs/24.3/lisp/color.el.gz
./share/emacs/24.3/lisp/color.elc
Run Code Online (Sandbox Code Playgroud)

leg*_*cia 9

您可以使用单个命令获取源代码M-x find-library.


Nou*_*him 8

您可以直接在Emacs中打开文件.我认为.gz文件默认是解压缩的.通常,我从我感兴趣的包中挑选出一个函数(例如org-mode),查找使用它的文档C-hf org-mode RET,然后单击文档缓冲区中的文件名.它会带你到源文件.