aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2002-08-15 20:32:05 +0000
committerRichard M. Stallman2002-08-15 20:32:05 +0000
commit44607ed46582c8290925afc3a6d82eb80f74a261 (patch)
tree4e84586c95654e7ba888cb4dfacd392e85788148
parent9f1cc7eb71cbeaa3d25da22985c1835a6476c59d (diff)
downloademacs-44607ed46582c8290925afc3a6d82eb80f74a261.tar.gz
emacs-44607ed46582c8290925afc3a6d82eb80f74a261.zip
Mention define-generic-mode.
-rw-r--r--lispref/modes.texi5
1 files changed, 5 insertions, 0 deletions
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}
69parent argument, since it automatically enforces the most important 69parent argument, since it automatically enforces the most important
70coding conventions for you. 70coding conventions for you.
71 71
72@findex define-generic-mode
73 For a very simple programming language major mode that handles
74comments and fontification, you can use @code{define-generic-mode}
75in @file{generic.el}.
76
72 Rmail Edit mode offers an example of changing the major mode 77 Rmail Edit mode offers an example of changing the major mode
73temporarily for a buffer, so it can be edited in a different way (with 78temporarily for a buffer, so it can be edited in a different way (with
74ordinary Emacs commands rather than Rmail commands). In such cases, the 79ordinary Emacs commands rather than Rmail commands). In such cases, the