Emacsのカスタマイズの大部分は、通常のinitファイルに記述すべきです。Emacs初期化ファイルを参照してください。ただし、通常のinitファイルが処理されるよりも早い、Emacs起動時にカスタマイズを反映させる必要がある場合があります。そのようなカスタマイズは、初期initファイルである~/.config/emacs/early-init.elまたは~/.emacs.d/early-init.elに記述できます。このファイルはパッケージシステムやGUIが初期化される前に読み込まれるため、package-enable-at-startup、package-load-list、package-user-dirなど、パッケージの初期化プロセスに影響を与える変数をカスタマイズできます。なお、package-archivesのように新規パッケージのインストールにのみ影響し、既にインストール済みのパッケージを利用可能にするプロセスには影響しない変数は、通常のinitファイルでカスタマイズできる点に注意してください。パッケージのインストールを参照してください。
We do not recommend that you move into early-init.el customizations that can be left in the
normal init files. That is because the early init file is read before the
GUI is initialized, so customizations related to GUI features will not work
reliably in early-init.el. By contrast, the
normal init files are read after the GUI is initialized. If you must have
customizations in the early init file that rely on GUI features, make them
run off hooks provided by the Emacs startup, such as window-setup-hook or tty-setup-hook. See Hooks.
初期 init ファイルの詳細については、The Emacs Lisp Reference Manual の Init File を参照してください。