3 Jan 17:59
Re: Add keywords in org comments
Carsten Dominik <dominik <at> science.uva.nl>
2009-01-03 16:59:25 GMT
2009-01-03 16:59:25 GMT
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 <at> gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode <at> gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
RSS Feed