开发者

How can i use /usr/bin/clj conveniently? [duplicate]

This question already has answers here: Closed 11 years ago.

Possible Duplicate:

Clojure REPL read开发者_C百科line like support

I am a clojure newbie. Today i installed it on my Arch box.

%pacman -Q|grep -i jdk 
openjdk6 6.b22_1.10.3-1

%pacman -Q|grep -i clojure
clojure 1.2.1-2
clojure-contrib 1.2.0-3

then i run clj:

%clj
Clojure 1.2.1
user=> (+ 1 2)
3

All seems ok however i feel it is VERY difficult to use the clj interactive environment, where i cannot use arrow key and so on.

What i really want to know is how i can config the clj interactive environment ?


Don't use repl via the command line, install any one of the ide plugins, emacs vim eclipse etc. they all come with integrated repl that way you can directly send statements from your source files to the repl. Plus all of them supports arrow keys history etc. (emacs does)


You already got two nice answers in comments, but this seems like a good chance to plug one of my projects, ClojureX:

https://github.com/citizen428/ClojureX

While developed for conveniently using Clojure on MacOS X, it also works well on Linux and even Windows with Cygwin. It will use rlwrap if it finds it installed and will fall back on the included JLine otherwise.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜