From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: how to set faces? Date: Tue, 28 Sep 2010 18:56:30 +0200 Message-ID: <31340963-56A3-41FC-BF3D-2F9F92F00750@gmail.com> Reply-To: Uwe Brauer 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=36601 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P0dTn-0008Dh-PX for emacs-orgmode@gnu.org; Tue, 28 Sep 2010 12:56:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1P0dTm-0006yB-CD for emacs-orgmode@gnu.org; Tue, 28 Sep 2010 12:56:35 -0400 Received: from mail-ew0-f41.google.com ([209.85.215.41]:63215) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P0dTm-0006uj-4y for emacs-orgmode@gnu.org; Tue, 28 Sep 2010 12:56:34 -0400 Received: by mail-ew0-f41.google.com with SMTP id 19so452182ewy.0 for ; Tue, 28 Sep 2010 09:56:33 -0700 (PDT) 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: emacs-orgmode@gnu.org Hello The following setting works in lisp mode (let ((lisp-regexp-4 " ?\\(\\<\\*[a-zA-Z]*\\*\\>\\)")) (setq lisp-font-lock-keywords-1 (append lisp-font-lock-keywords-1 (list (list lisp-regexp-4 0 'font-lock-log-warn-face t)))) (setq lisp-font-lock-keywords-2 (append lisp-font-lock-keywords-2 (list (list lisp-regexp-4 0 'font-lock-log-warn-face t))))) Every word surrounded by an * gets highlighted by the font-lock-log-warn-face. I tried something similar for org-mode, like (let ((lisp-regexp-4 " ?\\(\\<\\*[a-zA-Z]*\\*\\>\\)")) (setq org-font-lock-keywords (append lisp-font-lock-keywords-1 I guess this should be org-font-lock-keywords here? (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)) But it does not work, Can somebody give me a hint please? Uwe Brauer _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode