emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Uwe Brauer <oub@mat.ucm.es>
To: Carsten Dominik <carsten.dominik@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: how to set faces?
Date: Tue, 28 Sep 2010 22:12:31 +0200	[thread overview]
Message-ID: <87aan1vd8w.fsf@mat.ucm.es> (raw)
In-Reply-To: <173CA3FF-9DB7-4E91-8150-584E8E7B2C8F@gmail.com> (Carsten Dominik's message of "Tue, 28 Sep 2010 19:53:36 +0200")

>>>>> On Tue, 28 Sep 2010 19:53:36 +0200, Carsten Dominik <carsten.dominik@gmail.com> wrote:


   > Or do something more clever, like finding another hook
   > *maybe in font- lock that runs at the right time.
Well for the time being I would be even happy with an
interactive function which I call and turn font-lock-mode on
and off, so I tried 

(defun my-turn-on-or-font-org ()
(interactive)
(font-lock-add-keywords 'org-mode
  '((org-activate-links (0 font-lock-keyword-face))
    ("\\<TODO\\>" (0 font-lock-warning-face t))
    ("\\<DEADLINE\\>.*" (0 font-lock-warning-face t))
    ("\\<FIXME\\>" (0 font-lock-warning-face t))
    ("\\<NOEXPORT\\>" (0 font-lock-warning-face t))
   (" ?\\(\\%[a-zA-Z]*\\%\\)" (0 font-lock-comment-warn-face append t))
   (" ?\\(\\*[a-zA-Z]*\\*\\)" (0 font-lock-comment-warn-face append t))
    (" ?\\(\\<\\*[a-zA-Z]*\\*\\>\\)" (0 font-lock-comment-warn-face append t))
;; ("^[*]+ +\\<\\(DONE\\)\\>\\(.*\\)"
;;       (1 font-lock-type-face t) (2 font-lock-string-face t))
      )
  'append))


That is from some old version of org-mode, I think.  It does
not work, and if I understand you earlier messages correctly
the reason is that in the new version there are more
keywords such as
org-font-lock-keywords-extra


Suppose I download the newest org mode, how shall I modify
the above function in order to get it to work?

Uwe 

  reply	other threads:[~2010-09-28 20:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
  -- 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=87aan1vd8w.fsf@mat.ucm.es \
    --to=oub@mat.ucm.es \
    --cc=carsten.dominik@gmail.com \
    --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).