Closed weissjeffm closed 12 years ago
I noticed the same thing today in Emacs 24. Toggling font-lock-mode
like this, however, turns off colorisation of the prompt, so I'm not sure it's the right solution. Not sure how to fix this properly right now.
+1 Same problem for me. Disabling font-lock-mode
and then re-enabling it begins to syntax highlight, but the prompt loses color.
The namespace in the prompt is not colorized with font-lock, so I suspect there's no way to support both clojure-mode font-lock rules and prompt colorization.
Fix works, much appreciated!
This fix actually isn't working for me yet. :( I still have to disable font-lock-mode and enable it again to get the highlighting. Any other things I could try?
From the readme,
"Put this in your Emacs configuration to get syntax highlighting in the slime repl:
(add-hook 'slime-repl-mode-hook 'clojure-mode-font-lock-setup) "
That hook did not work for me. I know little about emacs internals, but I found a suggestion that did work for me:
(add-hook 'slime-repl-mode-hook (lambda () (font-lock-mode nil) (clojure-mode-font-lock-setup) (font-lock-mode t)))
Not sure why it is necessary to turn font-lock-mode off and on like that, but it would not work without it.