# HG changeset patch # User Richard M. Stallman # Date 1029443525 0 # Node ID 56bbdfd751430c94d86ce6b538d7f77c2b8342f7 # Parent 861d4dd87bd70f9c380f7d9ae1c4a4adf6a96371 Mention define-generic-mode. diff -r 861d4dd87bd7 -r 56bbdfd75143 lispref/modes.texi --- 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