enko / EmacsChocolateyPackage

source code for the emacs package on chocolatey.org
https://chocolatey.org/packages/Emacs/
8 stars 3 forks source link

Unable to setup Emacs with Spacemacs configs #3

Open abhi18av opened 5 years ago

abhi18av commented 5 years ago

Hi @enko ,

Thanks for the emacs package 👍

I just have a little config problem it seems, I'd like to use spacemacs with the emacs on windows config.

Now from the git bash terminal when I try to install spacemacs it doesn't quite work correctly. Here's all that's needed to install spacemacs

git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d

I'm running this from inside the git bash terminal.

I used this tutorial as a reference https://www.christopherhoelter.com/post/spacemacs-windows-setup/

And it doesn't seem to be so tough here. Could you please help me out ?

enko commented 5 years ago

Hey @abhi18av

Thanks for your report.

I'll have a look this evening (I'm UTC+02:00) and get back to you!

enko commented 5 years ago

Hey @abhi18av

I just tried to install spacemacs and it worked without a hitch (mostly). What was an issue, that I copied your command and this did not work on a normal cmd.exe because ~/ ain't a valid construct there.

As soon as I changed the command to

git clone https://github.com/syl20bnr/spacemacs .emacs.d

as I was in my home directory it fired up the spacemacs wizard. So make sure that you have the .emacs.d directory in your %HOME% (or %USERPROFILE as you would say on windows) with the spacemacs repository.

abhi18av commented 5 years ago

@enko , today I have tried again regarding the setup.

I am using powershell5 on Windows 10 Pro and I've installed git via the following command choco install git.

emacs has bee installed using the following command choco install emacs

After this, I open the git bash shell and the git clone the basic .emacs.d from spacemacs instructions. And then I launch emacs from the start menu.

So, far this still doesn't seem to work.

xlijun commented 5 years ago

I get to the same problem today. In my case it's related to the HOME environment variable. Without HOME, emacs will looks for .emacs.d in %APPDATA%. If HOME is set, emacs will looks for HOME/.emacs.d first.