From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Florian Kaufmann Newsgroups: gmane.emacs.help Subject: Re: coloring keywords in conversation Date: Wed, 6 Oct 2010 00:09:50 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <5b981811-7a16-40a1-889d-76729655ead6@z34g2000pro.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1291871267 16318 80.91.229.12 (9 Dec 2010 05:07:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Dec 2010 05:07:47 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 09 06:07:43 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQYjG-00089G-QZ for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 06:07:42 +0100 Original-Received: from localhost ([127.0.0.1]:40004 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQYjG-0006T9-5g for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 00:07:42 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!p26g2000yqb.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 15 Original-NNTP-Posting-Host: 212.189.23.66 Original-X-Trace: posting.google.com 1286348990 2171 127.0.0.1 (6 Oct 2010 07:09:50 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 6 Oct 2010 07:09:50 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: p26g2000yqb.googlegroups.com; posting-host=212.189.23.66; posting-account=biaK7QoAAAA_ZfVClVT8m8AhdARjayBT User-Agent: G2/1.0 X-HTTP-Via: HTTP/1.1 bes-wcg-01.cst.infonet.nl[7F000001] (Websense-Content_Gateway/7.1.3 [uSc ]) X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.8) Gecko/20100723 Ubuntu/10.04 (lucid) Firefox/3.6.8,gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:181653 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:76710 Archived-At: 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)))