>>>>> On Tue, 06 Jul 2021, akater  wrote:

> Info node “The Emacs Initialization File” mentions

> - init.el which is described in enough detail

> - default.el which is found via “the standard search path for libraries”
>   — what would that be?

> - site-start.el instead of which Gentoo has site-gentoo.el (I guess) —
>   but when is it loaded and how does Emacs know to load site-gentoo.el?
>   and why isn't it compiled?

> - early-init.el, “loaded before the package system and GUI is
>   initialized” — is it loaded before or after site-gentoo?

They're run in the order 1. early-init.el, 2. site-start.el, 3. init.el
(or equivalently ~/.emacs or ~/.emacs.el), 4. default.el.

Gentoo has only site-start.el but no default.el, so the user can
override the site configuration in their private init file.

One difference to the upstream default is that we place site-start.el
in /etc/emacs (rather than /usr/share/emacs) because it is a
configuration file. Typically, site-start.el will then load
site-gentoo.el which contains initialization for the installed elisp
packages.

> And does Gentoo load anything else, by chance?

I guess /usr/share/emacs/site-lisp/subdirs.el qualifies for that, it
adds all package dirs to the load-path.

Ulrich

Attachment: signature.asc
Description: PGP signature

Reply via email to