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

From 清冽之泉
Jump to navigation Jump to search
No edit summary
No edit summary
Line 9: Line 9:
7 Emacs 完全启动
7 Emacs 完全启动
</pre>
</pre>
== 平台 ==


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

Revision as of 15:33, 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 完全启动

平台

load-path

好的 load-path 方式为,自动扫描插件目录,在插件出问题时可以全删干净,不影响早期有效配置。