Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In a Emacs + Slime + Clojure + Windows setup, failure to load clojure-auto

I followed this very helpful guide on getting this development environment set up. When running the emacs.bat I get the following error in Emacs:

File error: Cannot open load file, clojure-auto

Unfortunitely I am completely new to both Clojure and Emacs, so any help in even figuring out where to begin looking would be helpful.

Also, as a side note the last step in the guide is:

Start up Emacs using the emacs.bat file. Then, just type "M-x slime", and the REPL will come up, and you're on your way.

According to the Emacs documentation, M-x would be Meta key + x. It's unclear on the Meta key in Windows, however. It talks about Control, but that would be C+x, so I assume it's Shift. I also tried M+! thinking it was a shell command, but no luck. Perhaps somebody could confirm in a comment.

Update: From dfa in the comments: "meta is Alt" which works. Thank you.

Update: Very helpful info from Rayne:

If you're emacs experience continues to go the wrong way, don't give up on Clojure. There is always La Clojure for IDEA Clojure-dev for Eclipse and my personal favorite, Enclojure for NetBeans.

like image 475
Robert Campbell Avatar asked Apr 17 '09 15:04

Robert Campbell


3 Answers

Rather than following the guide, why not just install ClojureBox? That will set it all up for you. It's a turnkey clojure + emacs installation.

like image 193
Steve Rowe Avatar answered Nov 12 '22 00:11

Steve Rowe


The problem is most likely in the load-path command where you tell it where the closure files are. Try expanding the path to be a full path name and see if that helps.

You could also try setting your HOME environment variable, I think the code there relies on it being C:\clojure-dev

like image 34
justinhj Avatar answered Nov 11 '22 23:11

justinhj


I documented my own experience in installing Emacs and the latest Clojure from Git repositories into Windows Vista. You might find it useful. If you're happy with Clojure 1.0.0 you can just install Clojure Box, though.

like image 28
ambi Avatar answered Nov 11 '22 23:11

ambi