Mercurial > emacs
diff lispref/modes.texi @ 46914:56bbdfd75143
Mention define-generic-mode.
| author | Richard M. Stallman <rms@gnu.org> |
|---|---|
| date | Thu, 15 Aug 2002 20:32:05 +0000 |
| parents | 7057566fa4c1 |
| children | df6767370b43 |
line wrap: on
line diff
--- a/lispref/modes.texi Thu Aug 15 20:31:03 2002 +0000 +++ b/lispref/modes.texi Thu Aug 15 20:32:05 2002 +0000 @@ -69,6 +69,11 @@ parent argument, since it automatically enforces the most important coding conventions for you. +@findex define-generic-mode + For a very simple programming language major mode that handles +comments and fontification, you can use @code{define-generic-mode} +in @file{generic.el}. + Rmail Edit mode offers an example of changing the major mode temporarily for a buffer, so it can be edited in a different way (with ordinary Emacs commands rather than Rmail commands). In such cases, the
