emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] how to set faces?


From: Uwe Brauer
Subject: Re: [Orgmode] how to set faces?
Date: Tue, 28 Sep 2010 22:12:31 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) XEmacs/21.4.21 (linux)

>>>>> On Tue, 28 Sep 2010 19:53:36 +0200, Carsten Dominik <address@hidden> 
>>>>> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]