unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Miles Bader <miles@gnu.org>
Cc: cmake@cmake.org, "William A. Hoffman" <billlist@nycap.rr.com>,
	emacs-devel@gnu.org
Subject: Re: cmake emacs mode
Date: Thu, 27 Apr 2006 06:01:45 +0900	[thread overview]
Message-ID: <87u08ggifa.fsf@catnip.gol.com> (raw)
In-Reply-To: <56450.128.165.123.132.1146064659.squirrel@webmail.lanl.gov> (Stuart D. Herring's message of "Wed, 26 Apr 2006 08:17:39 -0700 (PDT)")

"Stuart D. Herring" <herring@lanl.gov> writes:
> Moreover, this mode (aside from the indenting) looks to be extremely
> simple; you might be able to get away with making it a derived major mode
> (from Fundamental mode, probably; see `define-derived-mode') or even a
> generic mode (see `define-generic-mode').  Might make it less trouble to
> keep up with.

Yeah, I've found `define-generic-mode' to be very helpful for my own
language modes:  it makes font-locking and basic mode definition details
almost trivial, and usually doesn't get in the way of adding additional
functionality.

I think it really deserves more attention than it seems to get
(is d-g-m more or less compatible between Emacs 21 and 22?).

[Now if only there was a similarly easy way to define an indentation
engine... :-]

-Miles
-- 
Saa, shall we dance?  (from a dance-class advertisement)

      reply	other threads:[~2006-04-26 21:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-26  2:31 cmake emacs mode William A. Hoffman
2006-04-26 15:17 ` Stuart D. Herring
2006-04-26 21:01   ` Miles Bader [this message]

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87u08ggifa.fsf@catnip.gol.com \
    --to=miles@gnu.org \
    --cc=billlist@nycap.rr.com \
    --cc=cmake@cmake.org \
    --cc=emacs-devel@gnu.org \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).