diff options
| -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 |