From: Richard M. Stallman Date: Thu, 15 Aug 2002 20:32:05 +0000 (+0000) Subject: Mention define-generic-mode. X-Git-Tag: ttn-vms-21-2-B4~13668 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=44607ed46582c8290925afc3a6d82eb80f74a261;p=emacs.git Mention define-generic-mode. --- diff --git a/lispref/modes.texi b/lispref/modes.texi index 4c888448d66..65931150975 100644 --- a/lispref/modes.texi +++ b/lispref/modes.texi @@ -69,6 +69,11 @@ it is convenient to use @code{define-derived-mode} with a @code{nil} 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