[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cannot activate font-lock-mode
From: |
martin rudalics |
Subject: |
Re: cannot activate font-lock-mode |
Date: |
Sat, 21 Apr 2007 10:50:44 +0200 |
User-agent: |
Mozilla Thunderbird 1.0 (Windows/20041206) |
Sorry for not answering earlier but I just retrieved your response from
gmx's spam folder.
> So, what is now the recommended way to set file-specific font-lock
> keywords using file-local variables? If this has changed, it should be
> specified in the NEWS. I can write an entry once I understand the
> answer to my questions above.
You could add to your .emacs something like
(setq safe-local-eval-forms '((my-very-private-foobar))) ; customizable!
(defun my-very-private-foobar ()
(setq font-lock-defaults '(("^\\s-*:0" "##+")))
(font-lock-mode 1))
and in the local variables section use
# Local Variables:
# eval: (my-very-private-foobar)
# End: