[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: define-major-mode
From: |
Stefan Monnier |
Subject: |
Re: define-major-mode |
Date: |
Sat, 02 Oct 2010 00:56:18 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
> Somebody remind me why there's no define-major-mode macro...?
> I know the same effect can be achieved with (define-derived-mode foo
> fundamental-mode ...), but thought that Richard didn't people to do that
> (I sort of agree that it looks kludgey)...
Nowadays, most modes should derive from another: either special-mode,
text-mode or prog-mode. And fundamental-mode (aka nil) is a perfectly
valid parent mode, if none of those fit.
Stefan