Closed haji-ali closed 1 year ago
EDIT: Thinking more about it, perhaps --no-local-after-init
is best left for the user to implement. Instead, I implemented a configuration to avoid pruning when the local after-init is not run.
The thing I don't quite like about --no-local
(and correct me if I am wrong) is that when radian is compiled, passing --no-local
causes the local config (outside hooks) not to run, but hooks still run as usual. So this option is only relevent when radian is not compiled.
Oh dang, I didn't realize local configuration hooks would still be run with --no-local
. That's definitely a bug. Filed https://github.com/radian-software/radian/issues/528 to track.
This has several changes which I found useful, but I am not sure which ones would be wanted by others, so I am creating this PR as draft.
compat
to avoid callingpoint-at-eol
which is not available in emacs 29--no-local
is not passed. Both of these modes are temporary and should not affect the state of radian.--no-local
to not call the hook'after-init
rather than not load any local config. This is because local config (includingbefore-init
) might include path setting including for straight (my local config does this). Hence, running emacs without this pre-configuration would lead to unnecessary cloning of straight among other things. I am not sure if--no-local
should be changed as I suggest here or a different flag should be defined.