emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: emacs-orgmode@gnu.org
Subject: how to set faces?
Date: Tue, 28 Sep 2010 18:56:30 +0200	[thread overview]
Message-ID: <31340963-56A3-41FC-BF3D-2F9F92F00750@gmail.com> (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

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

             reply	other threads:[~2010-09-28 16:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-28 16:56 Carsten Dominik [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-09-27 10:24 how to set faces? Uwe Brauer
2010-09-28 16:10 ` Carsten Dominik
2010-09-28 17:48   ` Uwe Brauer
2010-09-28 17:53     ` Carsten Dominik
2010-09-28 20:12       ` Uwe Brauer

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=31340963-56A3-41FC-BF3D-2F9F92F00750@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=oub@mat.ucm.es \
    /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).