开始Clojure REPL的方法? [英] Ways to start Clojure REPL?

查看:154
本文介绍了开始Clojure REPL的方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

命名您知道启动Clojure REPL的方式。你最喜欢什么 ?

Name the ways you know to start the Clojure REPL. What is your favourite ? Does it highlight things for you ?

我知道:
1.带有Enclojure插件的NetBeans IDE,以及
2. Leiningen shell脚本:lein repl

I know of : 1. NetBeans IDE with the Enclojure plugin, and 2. the Leiningen shell script : lein repl

到目前为止我还没有收藏,我一定会喜欢一些颜色。

No favorite for me so far, and I'd certainly like some colors.

else?

推荐答案

语法突出显示Clojure REPL在Emacs中是完全可能的 - 我写了必要的代码,问题在这里SO:有Clojure的彩色REPL吗?自从调整它来处理来自Clojure过程的提示和打印输出;则更新版本可在此Gist 中找到。注意,这意味着增加SLIME REPL,并且最新版本依赖于一个相当新的clojure模式。我会正确地打包,这样slimey Clojurians可以把它放到他们的Emacs配置...可能只是做了一段时间很快。

Syntax-highlighted Clojure REPL is entirely possible in Emacs -- I wrote the necessary code in response to a very old question here on SO: Is there a colored REPL for Clojure? I have since tweaked it to handle the prompt and printouts from the Clojure process properly; the updated version is available in this Gist. Note that it's meant to augment the SLIME REPL and that the most recent version relies on a reasonably fresh clojure-mode. I was going to package this properly so that slimey Clojurians can just drop it into their Emacs configs... might just do it sometime soon.

另一个选择,我似乎有一个非常模糊的回忆VimClojure的REPL突出显示用户输入很久以前...我可以错过这个,虽然。

As another option, I seem to have an extremely vague recollection of VimClojure's REPL highlighting user input a long time ago... I definitely could be wrong about this, though.

哦,关于其他可能的方法来启动Clojure REPLs - 所有的IDE插件提供自己的REPL;你可以在Emacs中使用常规的劣质Lisp模式; java -jar clojure.jar 使用类路径上的当前工作目录启动REPL;如果你在你的应用程序中嵌入swank-clojure,你可以从里面启动REPL服务器; VimClojure在Vim中提供了一个不错的REPLing体验(我相信它提供了一个等效的 M-x slime-connect ,但是,再次,我没有使用它很长时间)。你可以使用Leiningen或clojure-maven-plugin启动独立的REPLs或swank实例(我希望其他Clojure感知的构建工具也能够这样); cljr 可以启动控制台REPL,在Swing窗口中打包的REPL和swank实例;可能会有更多。

Oh, and since you're curious about other possible ways to start Clojure REPLs -- all the IDE plugins provide their own REPLs; you could use the regular inferior-lisp-mode in Emacs; java -jar clojure.jar starts a REPL with the current working directory on the classpath; if you embed swank-clojure in your app, you can start REPL servers from within it; VimClojure provides a nice REPLing experience inside Vim (and I believe it provides an equivalent of M-x slime-connect, though, once again, I haven't used it in a pretty long time); you can use Leiningen or clojure-maven-plugin to start stand-alone REPLs or swank instances (I'd expect other Clojure-aware build tools to be capable of this too); cljr can start console REPLs, REPLs packaged in a Swing window and swank instances; there might be more.

这篇关于开始Clojure REPL的方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆