-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should custom.el move to personal/preload ? #1305
Comments
Downside of early |
You bring up some good point. Probably it makes sense for Prelude's configuration variables not to be |
I was wondering if it's ok to delete custom.el at all, as I have my own .el file with all my config. I have noticed that sometimes some of the config get copied onto custom.el and messes things ups if I change them back in my own .el file (because of the order in which the .el files are called). |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution and understanding! |
Well I believe it's possible to not have a custom.el at all - or it should be. The original issue is about where to load it. In the original issue I wrote:
In the interest of keeping the issue alive, here's an idea: move custom.el back to "as late as possible" evaluation. Add a new preload, "early as possible", piece of elisp that selectively loads parts of custom.el at the very beginning. Possibly whitelist based, unless something more clever can be devised. |
Today I encountered a similar problem. Anyway, I fixed it like this :
It worked for me. |
Could you explain how you did this more specifically? Thanks! |
Here is the patch file. (I appended the |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution and understanding! |
Problem
Some customizables, like the recently introduced
prelude-minimalistic-ui
, need to be set pretty early during startup.Prelude stores custom variables in
personal/custom.el
, which is loaded aftercore/prelude-ui
. As a result, a customizedprelude-minimalistic-ui
value is not used byprelude-ui
.Solution
I'm not quite sure.
Workaround
I moved my
custom.el
topersonal/preload
.Had to add
(setq custom-file (expand-file-name "custom.el" prelude-personal-preload-dir))
somewhere in i.e.personal/custom-location.el
to work aroundinit.el
resetting it.init.el
could be clever about the value ofcustom-file
: don't touch it if its anywhere in personal-dir, including preload-dir. Such cleverness would make preloading custom.el more straightforward.Additional context
I have plenty of customized faces and styles, some of which trace back 10+ years :) It's been a long frustration to see my emacs only slowly take the proper styling as it was booting. Moving
custom.el
to the preload directory solved that very nicely, which was a very appreciated side effect.This comment seems to indicate some people have legitimate reasons to see the custom variables set as late as possible. I don't know how to reconcile both.
The text was updated successfully, but these errors were encountered: