I\'d like to get a colored REPL for clojure code, similar to what you can do with IRB for Ruby.
Are there any libraries or settings for user.clj that provide automati
Rather late to the party, here, but you can get this from using the Leiningen plugin Ultra (which also has support for colorized stacktraces and pretty-printed test output), or by adding Whidbey to your list of Leiningen plugins instead.
Sample Ultra REPL:
Try out Light Table Playground by Chris Granger. It is the first part of more ambitous multi language IDE.
It has a color Clojure REPL that does real time evaluations and display for entire blocks of code.
http://www.chris-granger.com/lighttable/
You can see a higher level view of the project here:
http://www.kickstarter.com/projects/ibdknox/light-table
Some coloring have REPL in VimClojure.
M-x package-install
-> starter-kit-lisp
(add-hook 'slime-repl-mode-hook 'clojure-mode-font-lock-setup)
M-x clojure-jack-in
If you just want to color the prompt and you are using Leiningen (which you should), you can use :repl-options
and ANSI escape sequences:
:repl-options {:prompt (fn [ns]
(str "\033[1;32m"
ns "=>"
"\033[0m "))}
References: