Re: [Orgmode] Add keywords in org comments

2009-01-03 Thread firebird
Carsten Dominik writes: > > 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) > > You may use \vert for this. > > HTH > > - Carsten > Great! Now I can't wait to port all m

Re: [Orgmode] Add keywords in org comments

2009-01-03 Thread Carsten Dominik
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-embedde

Re: [Orgmode] Add keywords in org comments

2009-01-03 Thread Carsten Dominik
Hi firebird, You may want to take a look at org-mtags.el in the contrib/lisp directory (part of the org-mode distributions, but not in Emacs). It allows you to use a Muse-like syntax for embedded code and many other muse constructs, for example ... The tags will actually be in shadow font lik