From mboxrd@z Thu Jan 1 00:00:00 1970 From: Uwe Brauer Subject: Re: how to set faces? Date: Tue, 28 Sep 2010 22:12:31 +0200 Message-ID: <87aan1vd8w.fsf@mat.ucm.es> References: <878w2nxz4m.fsf@gilgamesch.quim.ucm.es> <9C69B4E8-6CB3-4DF2-BBA0-84D9B56547A4@gmail.com> <878w2l92u4.fsf@gilgamesch.quim.ucm.es> <173CA3FF-9DB7-4E91-8150-584E8E7B2C8F@gmail.com> Reply-To: Uwe Brauer Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=56834 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P0gXZ-0002CX-NX for emacs-orgmode@gnu.org; Tue, 28 Sep 2010 16:12:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1P0gXY-00038g-8k for emacs-orgmode@gnu.org; Tue, 28 Sep 2010 16:12:41 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:38131) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P0gXY-00038b-3F for emacs-orgmode@gnu.org; Tue, 28 Sep 2010 16:12:40 -0400 Received: by wyb36 with SMTP id 36so62706wyb.0 for ; Tue, 28 Sep 2010 13:12:39 -0700 (PDT) In-Reply-To: <173CA3FF-9DB7-4E91-8150-584E8E7B2C8F@gmail.com> (Carsten Dominik's message of "Tue, 28 Sep 2010 19:53:36 +0200") 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: Carsten Dominik Cc: emacs-orgmode@gnu.org >>>>> On Tue, 28 Sep 2010 19:53:36 +0200, Carsten Dominik wrote: > Or do something more clever, like finding another hook > *maybe in font- lock that runs at the right time. Well for the time being I would be even happy with an interactive function which I call and turn font-lock-mode on and off, so I tried (defun my-turn-on-or-font-org () (interactive) (font-lock-add-keywords 'org-mode '((org-activate-links (0 font-lock-keyword-face)) ("\\" (0 font-lock-warning-face t)) ("\\.*" (0 font-lock-warning-face t)) ("\\" (0 font-lock-warning-face t)) ("\\" (0 font-lock-warning-face t)) (" ?\\(\\%[a-zA-Z]*\\%\\)" (0 font-lock-comment-warn-face append t)) (" ?\\(\\*[a-zA-Z]*\\*\\)" (0 font-lock-comment-warn-face append t)) (" ?\\(\\<\\*[a-zA-Z]*\\*\\>\\)" (0 font-lock-comment-warn-face append t)) ;; ("^[*]+ +\\<\\(DONE\\)\\>\\(.*\\)" ;; (1 font-lock-type-face t) (2 font-lock-string-face t)) ) 'append)) That is from some old version of org-mode, I think. It does not work, and if I understand you earlier messages correctly the reason is that in the new version there are more keywords such as org-font-lock-keywords-extra Suppose I download the newest org mode, how shall I modify the above function in order to get it to work? Uwe