plexus / chemacs

Emacs profile switcher
652 stars 45 forks source link

let chemacs take over both early-init.el and init.el #39

Closed emacs18 closed 3 years ago

emacs18 commented 3 years ago

This is just for discussing the possibility of having chemacs take over both files to allow loading of profile specific early-init.el file at appropriate time. User must setup both files like this:

~/.emacs.d/early-init.el and ~/.emacs.d/init.el must be either symlinks or copies of chemacs/.emacs.

This patch modifies chemacs/.emacs so that

I examined emacs startup code. I discovered that custom-delayed-init-variables can be used to distinguish between the two files. Until we find something better, this could work I think.

emacs18 commented 3 years ago

This follows https://github.com/plexus/chemacs/pull/38 which was my earlier feeble attempt. I think I like this one better, because early-init.el is loaded at more appropriate time.

plexus commented 3 years ago

For folks following along at home, we are going ahead with the early-init support in a separate repo, https://github.com/plexus/chemacs2/pull/1