[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Font Lock Problems

From: Stefan Monnier
Subject: Re: Font Lock Problems
Date: Tue, 21 Oct 2003 16:11:50 GMT
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

> (font-lock-add-keywords
>  'language-speak-mode
>  '(("#.*" 0 font-lock-comment-face)))

Better setup the syntax-table properly to mark # as a comment-startand
\n as comment-end.

> This works fine an does what I expect (that is for each line
> highlights ">>>>" in one colour, all the text before it in another,
> and all the text after it in another). But its does it very
> lazily. In fact I have to call "font-lock-fontify-buffer" to get it to
> do any fontification at all. 

Have you turned font-lock-mode ON ?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]