-
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
Error when using a config directory other than .emacs.d #3390
Comments
@justbur Thank you for the suggestion. The first answer suggests changing HOME, which is a bit too much. The second answer is very similar to what I propose and has the same problem. |
Several months ago, I was switching emacs configurations pretty often. What I did is just writing and using simple script like following
So actually, my P. S. I know it doesn't really solve your initial problem, but depending on reasons you have two use different configurations it might help. Updated But yeah, changing value of |
Why is changing
|
@d12frosted Thanks for the suggestion. The reason I want to have both active at the same time is that I'm not fully ready to switch to spacemacs. I do too much in emacs (especially reading mail) and I prefer to gradually switch. |
@TheBB Hm. Well, probably it is good enough to just test spacemacs, but in a long run it could hurt. Especially if you have different things that use @brabalan Ah, I see. Well, then in my opinion it's better to make working the thing you use for running emacs:
|
@d12frosted I think the pull request does what I want … but as I installed it in the develop branch, the code is not executed. I just tried it in master and it seems to work. |
also this seems dirty, but you could try changing $HOME back after emacs loads (setenv "HOME" "path/to/home") |
@justbur Haha. Good idea! 😄 |
@justbur What do you mean by other uses of async? I greped for async-start, excluding the ones in elpa:
The first hit is my proposed change, and the second one also does some variable injection manually (the macro
Regarding setting back $HOME, that's a way to get around the problem, assuming spacemacs only rely on $HOME for the location of |
@brabalan You're right, but my point was more that we potentially have to worry about all current and future uses of async. I don't mind your solution. I was just trying to come up with a better way of doing things. I was half joking with the $HOME thing. I don't think it's a great solution either. It seems to me at least that the cleanest way to do this is to have a script that toggles symlinks like @d12frosted suggested, but I'll shut up now because this won't affect me as it is. |
@justbur I did not know of async till yesterday, and it seems we have to worry about it anyway (as in: any use of a variable defined outside of the async should be injected). Using scripts would work great if I did not need to run two emacs side by side. |
@brabalan sorry I missed the part where you wanted two instances running at the same time |
yes, same problem. im using both prelude and spacemacs atm for the different projects. |
The fix is in the develop branch now. Incidentally it's not useful until release, since the async session in question doesn't happen on the develop branch... |
I want to try spacemacs alongside my usual emacs, so I cloned the repository to
~/src/spacemacs
and I'm launching it like this:The initial setup works fine until it's done compiling files. I then see this in the
*Messages*
buffer:When toggling
debug-on-error
I get the following backtraceI guess the problem comes from here: https://github.com/syl20bnr/spacemacs/blob/master/core/core-release-management.el#L70
It seems that
async-start
call does not inherit the value ofuser-emacs-directory
that I set. If I evaluateI get
got ~/.emacs.d/
in the*Messages*
buffer.A potential fix is to inject the variable in the async call, as in
The text was updated successfully, but these errors were encountered: