Emacs 从零开始写配置: Difference between revisions

From 清冽之泉
Jump to navigation Jump to search
Created page with "据 ChatGPT 所说,Emacs 启动顺序为: <pre> 1 启动 C 核心 2 初始化 load-path 3 加载 site-start.el(系统级配置) 4 加载 early-init.el(用户早期配置) 5 初始化 package.el 6 加载 init.el 或 .emacs(用户配置) 7 Emacs 完全启动 </pre>"
 
No edit summary
Line 9: Line 9:
7 Emacs 完全启动
7 Emacs 完全启动
</pre>
</pre>
所以,一个自动化较高的 Emacs 配置,第一步就是自动处理 load-path。好的 load-path 方式为,自动扫描插件目录,在插件出问题时可以全删干净,不影响早期有效配置。

Revision as of 15:31, 17 March 2026

据 ChatGPT 所说,Emacs 启动顺序为:

1 启动 C 核心
2 初始化 load-path
3 加载 site-start.el(系统级配置)
4 加载 early-init.el(用户早期配置)
5 初始化 package.el
6 加载 init.el 或 .emacs(用户配置)
7 Emacs 完全启动

所以,一个自动化较高的 Emacs 配置,第一步就是自动处理 load-path。好的 load-path 方式为,自动扫描插件目录,在插件出问题时可以全删干净,不影响早期有效配置。