all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Stefan Monnier" <monnier+gnu.emacs.help/news/@flint.cs.yale.edu>
Subject: Re: How do I setup an extremely simple font-lock mode?
Date: 23 May 2003 11:03:15 -0400	[thread overview]
Message-ID: <5lfzn5aeoc.fsf@rum.cs.yale.edu> (raw)
In-Reply-To: mailman.6614.1053651042.21513.help-gnu-emacs@gnu.org

>>>>> "Matt" == Matt Noel <mgn000@mac.com> 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	other threads:[~2003-05-23 15:03 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.6614.1053651042.21513.help-gnu-emacs@gnu.org>
2003-05-23 15:03 ` Stefan Monnier [this message]
2003-05-23 15:05   ` How do I setup an extremely simple font-lock mode? Stefan Monnier
     [not found] <mailman.6601.1053636524.21513.help-gnu-emacs@gnu.org>
2003-05-22 23:58 ` Alex Schroeder
2003-05-23 13:50 ` Barman Brakjoller
2003-05-23 15:02 ` kgold
2003-05-23 15:24   ` Bryan W. Lepore
2003-05-22 20:47 Matt Noel
2003-05-22 21:11 ` myrkraverk
2003-05-23  0:48   ` Matt Noel

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5lfzn5aeoc.fsf@rum.cs.yale.edu \
    --to=monnier+gnu.emacs.help/news/@flint.cs.yale.edu \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.