From 44607ed46582c8290925afc3a6d82eb80f74a261 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Thu, 15 Aug 2002 20:32:05 +0000 Subject: [PATCH] Mention define-generic-mode. --- lispref/modes.texi | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.39.2