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

落爺英雄遲暮 提交于 2020-01-23 05:50:07

问题


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.


回答1:


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.




回答2:


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




回答3:


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.



来源:https://stackoverflow.com/questions/760868/in-a-emacs-slime-clojure-windows-setup-failure-to-load-clojure-auto

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!