How to add to early-init in a version-control-friendly way?

What happened?

I’m trying to add a line to my early-init. It works when I add the line to ~/.emacs.d/early-init.el, but I don’t want to add that file to my version control (since it’s managed by doom). Is there a $DOOMDIR/early-init.el? I tried adding my additional config there (and running doom sync to be safe) but it didn’t seem to work.

What did you expect to happen?

I’d like to have some way to make changes to my early-init from within $DOOMDIR somehow.

Steps to reproduce

  1. Add (add-to-list 'default-frame-alist '(undecorated . t)) to ~/.emacs.d/early-init.el
  2. Open emacs (on osx, intel chip), notice that the title bar does not appear
  3. Remove (add-to-list 'default-frame-alist '(undecorated . t)) from ~/.emacs.d/early-init.el, but add it to $DOOMDIR/early-init.el
  4. Open emacs (on osx, intel chip), notice that the title bar DOES appear

System information


Loading data dump...

Put it in $DOOMDIR/init.el. It runs in the same context as $EMACSDIR/early-init.el.

EDIT: Actually, the frame is created long after $DOOMDIR/config.el is loaded, so you can add new entries to default-frame-alist there too.

Just tried it and it works, thank you! And thanks for all of your work on doom!