From: Uwe Brauer <oub@mat.ucm.es>
To: emacs-orgmode@gnu.org
Subject: how to set faces?
Date: Mon, 27 Sep 2010 12:24:41 +0200 [thread overview]
Message-ID: <878w2nxz4m.fsf@gilgamesch.quim.ucm.es> (raw)
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
(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
next reply other threads:[~2010-09-27 10:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-27 10:24 Uwe Brauer [this message]
2010-09-28 16:10 ` how to set faces? Carsten Dominik
2010-09-28 17:48 ` Uwe Brauer
2010-09-28 17:53 ` Carsten Dominik
2010-09-28 20:12 ` Uwe Brauer
-- strict thread matches above, loose matches on Subject: below --
2010-09-28 16:56 Carsten Dominik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878w2nxz4m.fsf@gilgamesch.quim.ucm.es \
--to=oub@mat.ucm.es \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).