在Emacs + Slime + Clojure + Windows设置中,无法加载clojure-auto

时间:2022-10-22 22:49:04

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:

我按照这个非常有用的指南来设置这个开发环境。运行emacs.bat时,我在Emacs中收到以下错误:

File error: Cannot open load file, clojure-auto

文件错误:无法打开加载文件,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.

不幸的是,我对Clojure和Emacs都是全新的,所以任何有助于确定从哪里开始寻找都会有所帮助。

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.

使用emacs.bat文件启动Emacs。然后,只需键入“M-x slime”,REPL就会出现,然后你就可以了。

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.

根据Emacs文档,M-x将是Meta key + x。但是,目前还不清楚Windows中的Meta键。它谈到控制,但那将是C + x,所以我认为它是Shift。我也试过M +!认为这是一个shell命令,但没有运气。也许有人可以在评论中证实。

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

更新:来自评论中的dfa:“meta is Alt”有效。谢谢。

Update: Very helpful info from Rayne:

更新: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.

如果你的emacs经验继续走错路,不要放弃Clojure。对于Eclipse的IDEA Clojure-dev总是有La Clojure,我个人最喜欢的是NetBeans的Enclojure。

3 个解决方案

#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.

而不是遵循指南,为什么不安装ClojureBox?这将为你全力以赴。这是一个交钥匙clojure + emacs安装。

#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.

问题最有可能出现在load-path命令中,您可以在其中告诉闭包文件的位置。尝试将路径扩展为完整路径名称,看看是否有帮助。

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

你也可以尝试设置你的HOME环境变量,我认为那里的代码依赖于它是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.

我记录了自己在将Emacs和最新的Clojure从Git存储库安装到Windows Vista中的经验。您可能会发现它很有用。如果你对Clojure 1.0.0感到满意,你可以安装Clojure Box。

#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.

而不是遵循指南,为什么不安装ClojureBox?这将为你全力以赴。这是一个交钥匙clojure + emacs安装。

#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.

问题最有可能出现在load-path命令中,您可以在其中告诉闭包文件的位置。尝试将路径扩展为完整路径名称,看看是否有帮助。

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

你也可以尝试设置你的HOME环境变量,我认为那里的代码依赖于它是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.

我记录了自己在将Emacs和最新的Clojure从Git存储库安装到Windows Vista中的经验。您可能会发现它很有用。如果你对Clojure 1.0.0感到满意,你可以安装Clojure Box。