all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
To: Peter Tury <tury.peter@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: font-lock-defaults doesn't work??
Date: Sat, 14 Apr 2007 12:47:24 +0200	[thread overview]
Message-ID: <4620B13C.7060005@gmail.com> (raw)
In-Reply-To: <1176545608.261298.25180@w1g2000hsg.googlegroups.com>

Peter Tury wrote:
> Tim X:
>> You are also re-inventing a wheel to some extent. Use define-derived-mode
> 
> If I remember well, define-derived-mode is for very simple new major
> modes what practically doesn't do more than fontification, new key
> bindings and so. 

I do not know this very well, but maybe you are thinking of 
define-generic-mode? The elisp manu says

    "Even if the new mode is not an obvious derivative of any other mode,
it is convenient to use `define-derived-mode' with a `nil' parent
argument, since it automatically enforces the most important coding
conventions for you."

  reply	other threads:[~2007-04-14 10:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-13 15:35 font-lock-defaults doesn't work?? Peter Tury
2007-04-14  9:42 ` Tim X
2007-04-14 10:13   ` Peter Tury
2007-04-14 10:47     ` Lennart Borgman (gmail) [this message]
2007-04-15  3:54     ` Tim X
2007-04-16 10:07 ` Peter Tury
  -- strict thread matches above, loose matches on Subject: below --
2007-04-15  7:48 martin rudalics

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=4620B13C.7060005@gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=tury.peter@gmail.com \
    /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.