>>>>> On Tue, 28 Sep 2010 19:53:36 +0200, Carsten Dominik >>>>> <carsten.domi...@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 _______________________________________________ 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