help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: How do I setup an extremely simple font-lock mode?


From: Stefan Monnier
Subject: Re: How do I setup an extremely simple font-lock mode?
Date: 23 May 2003 11:03:15 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

>>>>> "Matt" == Matt Noel <address@hidden> writes:
> (defun pta-mode ()
>   (setq font-lock-defaults '(pta-font-lock-keywords))
> )

Please make it

  (define-derived-mode pta-mode "PTA"
    "Major mode to edit PTA logs."
    (set (make-local-variable 'font-lock-defaults)
         '(pta-font-lock-keywords)))

otherwise, global-font-lock-mode might not work as expected.


        Stefan


reply via email to

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