-
Notifications
You must be signed in to change notification settings - Fork 4.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
init.el: setup user-emacs-directory when load #520
Conversation
user-emacs-directory is defined by emacs when load config, in most case it's value is ~/.emacs.d. We setup this variable in init.el to make existing emacs user can test spacemacs by emacs -q -l ~/spacemacs/init.el without change their own ~/.emacs.d config. Signed-off-by: Yen-Chin Lee <coldnew.tw@gmail.com>
I cherry-picked it and played with it. There is a major problem with this approach: all `after-init-hooks` will be triggered right away because the hook is run before the end of the alternate init file ([source](https://groups.google.com/forum/#!topic/gnu.emacs.help/IrMz48PQykk)) . It leads to numerous errors, I fixed the spacemacs ones but obviously I cannot fix the errors from packages. The remaining errors don't prevent spacemacs from working but they give a very bad impression on spacemacs quality with errors logs in `*Messages*`. For those reasons I revert back this change as well as the documentation I added. #520
I cherry-picked it and played with it. For those reasons I revert back this change as well as the documentation I added. See commit 23c2314 |
Anyway thank you for the PR ! |
There is a clean way to do it mentioned in the source above but it involved playing with |
It's ok, I use another way to suite my need without hack the spacemacs, My method as following repo, first I load my own init.el, then set the |
That's cool. It would be cool if |
A better way to run spacemacs from a separate directory is to install it in and then you can alias the admittably ugly way of starting it to something like spacemacs |
I cherry-picked it and played with it. There is a major problem with this approach: all `after-init-hooks` will be triggered right away because the hook is run before the end of the alternate init file ([source](https://groups.google.com/forum/#!topic/gnu.emacs.help/IrMz48PQykk)) . It leads to numerous errors, I fixed the spacemacs ones but obviously I cannot fix the errors from packages. The remaining errors don't prevent spacemacs from working but they give a very bad impression on spacemacs quality with errors logs in `*Messages*`. For those reasons I revert back this change as well as the documentation I added. syl20bnr#520
user-emacs-directory is defined by emacs when load config, in most case
it's value is ~/.emacs.d. We setup this variable in init.el to make
existing emacs user can test spacemacs by
emacs -q -l ~/spacemacs/init.el
without change their own ~/.emacs.d config.
Signed-off-by: Yen-Chin Lee coldnew.tw@gmail.com