[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: coloring keywords in conversation
From: |
Florian Kaufmann |
Subject: |
Re: coloring keywords in conversation |
Date: |
Wed, 08 Dec 2010 15:31:02 -0000 |
User-agent: |
G2/1.0 |
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)))