|how to get font-lock to work in swank repl buffer||bsmith.occs||1/19/12 1:52 PM|
I'm trying to get syntax highlighting (font-lock) to work in the
repl buffer provided by slime as described here:
The results are not visibly different from having not added this
Once the repl buffer is open, I can get font-lock to work by
What am I misunderstanding?
- Emacs 220.127.116.11
Incidentally, what's with this strange form of let?
(let (font-lock-mode) ;; <- shouldn't this bind variables?
|Re: how to get font-lock to work in swank repl buffer||Max Penet||1/19/12 3:08 PM|
This should do it:
(add-hook 'slime-repl-mode-hook 'clojure-mode-font-lock-setup)
On Jan 19, 10:52 pm, Ben Smith-Mannschott <bsmith.o...@gmail.com>
|Re: how to get font-lock to work in swank repl buffer||Max Penet||1/19/12 3:14 PM|
Well it *should*, now that I think of it, I am not using clojure-jack-
in so it might be different.
|Re: how to get font-lock to work in swank repl buffer||Jack Moffitt||1/19/12 3:45 PM|
The instructions in the git repo don't work for me either, but
> M-x clojure-mode-font-lock-setup
does. The suggested (add-hook 'slime-repl-mode-hook
You can automate the manual workaround with this:
|Re: how to get font-lock to work in swank repl buffer||Daniel Janus||1/20/12 2:53 AM|
On Thursday, January 19, 2012 9:52:44 PM UTC, bsmith.occs wrote:
In Common Lisp (and presumably in Emacs Lisp as well), 'let' takes an additional pair of parens around each name/value pair. This allows for a shortcut: (let (a) body) is equivalent to (let ((a nil)) body).
Sorry for the offtopic,
|Re: how to get font-lock to work in swank repl buffer||bsmith.occs||1/20/12 12:03 PM|
On Fri, Jan 20, 2012 at 00:45, Jack Moffitt <ja...@metajack.im> wrote:
Excellent! This worked for me.
Many thanks for the tip.