On Thu, Mar 18, 2010 at 11:08 PM, Michał Marczyk
<michal.marc...@gmail.com> wrote:
> there was a Stack Overflow question recently re: syntax highlighting
> Clojure REPLs. This got me thinking that since I was going to tweak
> SLIME REPL font-lock for quite some time now (I find the default a bit
> too aggressive), I might as well do it now and have it use
> clojure-mode's font-lock settings too.
>
> Here's what I came up with:
> http://gist.github.com/337280
>
> I've got some questions in connection with this. Firstly, I'd love to
> know whether this could be done in a simpler way. If not, then I
> wonder if clojure-mode could move the font-lock setup from the
> clojure-mode function itself to something like my
> clojure-font-lock-setup function and  then just call that from
> clojure-mode? That way a usable syntax highlighting SLIME REPL would
> become a one hook affair.

Awesome. Yeah, that sounds great. Could you submit an issue to
clojure-mode to do this?

http://github.com/technomancy/clojure-mode/issues

A patch would be even better, of course.

> Then there's one thing I didn't try to tackle for now (because it
> would actually require me to write font-lock code, which is something
> that scares me to death), namely prompt highlighting ("namespace>"
> appears in plain text for now). Is there a simple way to add this on
> top of clojure-mode font-lock settings?

This would belong in swank-clojure actually. clojure-mode doesn't with
slime at all by itself; it's just for highlighting, indentation, etc.
(though it can spawn simplistic repl subprocesses.)

-Phil

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

To unsubscribe from this group, send email to 
clojure+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to