Well it *should*, now that I think of it, I am not using clojure-jack- in so it might be different.
On Jan 20, 12:08 am, Max Penet <[email protected]> wrote: > Hello, > > This should do it: > > (add-hook 'slime-repl-mode-hook 'clojure-mode-font-lock-setup) > > On Jan 19, 10:52 pm, Ben Smith-Mannschott <[email protected]> > wrote: > > > > > > > > > I'm trying to get syntax highlighting (font-lock) to work in the > > repl buffer provided by slime as described > > here:https://github.com/technomancy/swank-clojure > > > (add-hook 'slime-repl-mode-hook > > (defun clojure-mode-slime-font-lock () > > (let (font-lock-mode) > > (clojure-mode-font-lock-setup)))) > > > The results are not visibly different from having not added this > > slime-repl-mode-hook. > > > Once the repl buffer is open, I can get font-lock to work by > > doing this manually: > > > M-x clojure-mode-font-lock-setup > > M-x font-lock-mode (turning it off) > > M-x font-lock-mode (turning it back on) > > > What am I misunderstanding? > > > I'm running: > > > - Emacs 24.0.91.1 > > - clojure-mode 1.11.5 > > - slime 20100404.1 > > - slime-repl 20100404 > > - clojure 1.3.0 > > - clojure-maven-plugin 1.3.8 > > - swank-clojure 1.3.4 > > > Incidentally, what's with this strange form of let? > > > (let (font-lock-mode) ;; <- shouldn't this bind variables? > > (clojure-mode-font-lock-setup)) > > > // Ben -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en
