On 19 March 2010 18:12, Phil Hagelberg <p...@hagelb.org> wrote: > On Thu, Mar 18, 2010 at 11:08 PM, Michał Marczyk > 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.
Sure thing, I'll send you a patch / pull request sometime this weekend. :-) >> 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.) Yes, I realise that's not something to put in clojure-mode. What I meant is that I haven't yet investigated how slime-repl & swank-clojure (?) go about putting those custom text properties on things captured on the standard output of the Lisp process (so things like (doc foo) or the output of (println :foo) have their own subdued colour). Basically I'd like to try to use whatever mechanism is in place for distinguishing printouts from return values and combine that with clojure-mode highlighting for the perfect Clojure-oriented SLIME REPL experience. ;-) Hopefully I'll be able to do that in the next few days; I'll post it for your consideration as soon as I have it ready. (Note that as far as font-lock is concerned, I hardly know what I'm doing. Perhaps someone who knows what they're doing will post the elisp incantation to accomplish the above before I get started on it. :-)) All the best, Michał -- 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.