From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: how to set faces? Date: Tue, 28 Sep 2010 19:53:36 +0200 Message-ID: <173CA3FF-9DB7-4E91-8150-584E8E7B2C8F@gmail.com> References: <878w2nxz4m.fsf@gilgamesch.quim.ucm.es> <9C69B4E8-6CB3-4DF2-BBA0-84D9B56547A4@gmail.com> <878w2l92u4.fsf@gilgamesch.quim.ucm.es> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=54657 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P0eN4-000645-2x for emacs-orgmode@gnu.org; Tue, 28 Sep 2010 13:53:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1P0eN2-0007aN-VZ for emacs-orgmode@gnu.org; Tue, 28 Sep 2010 13:53:42 -0400 Received: from mail-ew0-f41.google.com ([209.85.215.41]:60951) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P0eN2-0007aJ-PS for emacs-orgmode@gnu.org; Tue, 28 Sep 2010 13:53:40 -0400 Received: by ewy19 with SMTP id 19so485939ewy.0 for ; Tue, 28 Sep 2010 10:53:39 -0700 (PDT) In-Reply-To: <878w2l92u4.fsf@gilgamesch.quim.ucm.es> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Uwe Brauer Cc: emacs-orgmode@gnu.org On Sep 28, 2010, at 7:48 PM, Uwe Brauer wrote: >>>>>> On Tue, 28 Sep 2010 18:10:31 +0200, Carsten Dominik >>>>> > wrote: > >> On Sep 27, 2010, at 12:24 PM, Uwe Brauer wrote: > > >>> (list (list lisp-regexp-4 0 >>> 'font-lock-comment-warn-face t))))) >>> >>> >>> Or >>> >>> (add-to-list 'org-font-lock-keywords >>> '(" ?\\(\\<\\*[a-zA-Z]*\\*\\>\\)" 1 'font-lock-comment-warn-face >>> append t)) > >> Org-mode sets org-font-lock-keywords while the mode is turned >> on, locally in each org-mode buffer, because depending on setup, >> the keywords can be different in different buffers. > >> Please take a look at the function org-set-font-lock-defaults, > I am using 6.34, this function is not documented. > >> and in particular use the hook org-font-lock-set-keywords-hook > does not exist >> in order to append your stuff to the variable >> org-font-lock-keywords-extra (no, I do not know why > this neither. > > So I must upgrade I presume? Or do something more clever, like finding another hook *maybe in font- lock that runs at the right time. - Carsten