[slime-devel] Re: Font-lock trickery

Lawrence Mitchell wence at gmx.li
Wed May 5 17:41:46 UTC 2004


Nikodemus Siivola wrote:

> Instead of doing something useful I spent the first part of the day
> coaxing/cargo-culting emacs to fontify user-definied defoo forms nicely.


[...] code.

> Won't take effect without restarting emacs -- or some other trickery that
> I'm not aware of.

Just rerunning M-x lisp-mode RET should do the trick.

The way to really do this is to push these keywords onto a new
font-lock-keywords variable, like:

(defvar lisp-font-lock-keywords-3 (append
                                   lisp-font-lock-keywords-2
                                   list-as-above))

Then, if users have font-lock-maximum-decoration set to either
t, or 3, these extra keywords will be picked up, otherwise they
won't.

[...]

-- 
Lawrence Mitchell <wence at gmx.li>





More information about the slime-devel mailing list