From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Add keywords in org comments Date: Sat, 3 Jan 2009 17:59:25 +0100 Message-ID: References: Mime-Version: 1.0 (Apple Message framework v929.2) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LJ9qX-0006z0-Jr for emacs-orgmode@gnu.org; Sat, 03 Jan 2009 11:59:33 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LJ9qU-0006xz-SX for emacs-orgmode@gnu.org; Sat, 03 Jan 2009 11:59:32 -0500 Received: from [199.232.76.173] (port=38459 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LJ9qU-0006xw-ME for emacs-orgmode@gnu.org; Sat, 03 Jan 2009 11:59:30 -0500 Received: from nf-out-0910.google.com ([64.233.182.189]:4936) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LJ9qU-00038o-2x for emacs-orgmode@gnu.org; Sat, 03 Jan 2009 11:59:30 -0500 Received: by nf-out-0910.google.com with SMTP id c7so997060nfi.26 for ; Sat, 03 Jan 2009 08:59:28 -0800 (PST) In-Reply-To: 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: firebird Cc: emacs-orgmode@gnu.org On Jan 3, 2009, at 9:32 AM, firebird wrote: > > But I cannot change face of #+BEGIN_SRC/#+END_SRC with following > codes. If the first character # is in the column 0, > #+BEGIN_SRC/#+END_SRC is displayed in the default face, > font-lock-comment-face, not my org-embedded-code-face. > > (defface org-embedded-code-face > '((t (:foreground "grey40"))) > "Used in org-mode to indicate code block.") > > (font-lock-add-keywords > 'org-mode > '(("#\\+BEGIN_SRC.*$" . 'org-embedded-code-face) > ("#\\+END_SRC" . 'org-embedded-code-face))) > > I'm not good at emacs lisp, so I couldn't find why similar codes > don't > work in org mode. Any suggestion and help are appreciated. This does work for me: (font-lock-add-keywords 'org-mode '(("#\\+BEGIN_SRC.*$" (0 'org-embedded-code-face t)) ("#\\+END_SRC" (0 'org-embedded-code-face t))) t) > BTW, any body could tell me how to use `|' in a org table cell? I'm > sure it has been asked, but I couldn't find the answer in this > maillist > and org faq. Thank you in advance. You may use \vert for this. HTH - Carsten > > > -- Best Regards, > > firebird > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode