[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: coloring keywords in conversation
From: |
stef |
Subject: |
Re: coloring keywords in conversation |
Date: |
Wed, 08 Dec 2010 15:31:12 -0000 |
User-agent: |
G2/1.0 |
Thanks for the code, Flo.
It was a big help.
Regards, Stef
Florian Kaufmann wrote:
> Copy the following into a buffer, e.g. *scratch*. With point at the
> end of it, hit C-x C-e (eval-last-sexp). In your mode, execute that
> command with M-x highlight-conversation.
>
> Cheers
>
> Flo
>
> (defun highlight-converstation ()
> (setq my-font-lock-keywords '("MyKeyWord" "MyKeyword2"
> "MyKeyword3"))
> (modify-syntax-entry ?\" "\"")
> (set (make-local-variable 'font-lock-defaults) '(my-font-lock-
> keywords)))