diff options
| author | Richard M. Stallman | 2002-08-15 20:32:05 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2002-08-15 20:32:05 +0000 |
| commit | 44607ed46582c8290925afc3a6d82eb80f74a261 (patch) | |
| tree | 4e84586c95654e7ba888cb4dfacd392e85788148 | |
| parent | 9f1cc7eb71cbeaa3d25da22985c1835a6476c59d (diff) | |
| download | emacs-44607ed46582c8290925afc3a6d82eb80f74a261.tar.gz emacs-44607ed46582c8290925afc3a6d82eb80f74a261.zip | |
Mention define-generic-mode.
| -rw-r--r-- | lispref/modes.texi | 5 |
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} | |||
| 69 | parent argument, since it automatically enforces the most important | 69 | parent argument, since it automatically enforces the most important |
| 70 | coding conventions for you. | 70 | coding conventions for you. |
| 71 | 71 | ||
| 72 | @findex define-generic-mode | ||
| 73 | For a very simple programming language major mode that handles | ||
| 74 | comments and fontification, you can use @code{define-generic-mode} | ||
| 75 | in @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 |
| 73 | temporarily for a buffer, so it can be edited in a different way (with | 78 | temporarily for a buffer, so it can be edited in a different way (with |
| 74 | ordinary Emacs commands rather than Rmail commands). In such cases, the | 79 | ordinary Emacs commands rather than Rmail commands). In such cases, the |