Mercurial > emacs
comparison lisp/derived.el @ 40917:b5584ab9e544
(define-derived-mode): Doc fix.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 11 Nov 2001 17:58:58 +0000 |
parents | d184455da497 |
children | 2ad569e99f97 |
comparison
equal
deleted
inserted
replaced
40916:4a749a84888c | 40917:b5584ab9e544 |
---|---|
122 or nil if there is no parent. | 122 or nil if there is no parent. |
123 NAME: a string which will appear in the status line (e.g. \"Hypertext\") | 123 NAME: a string which will appear in the status line (e.g. \"Hypertext\") |
124 DOCSTRING: an optional documentation string--if you do not supply one, | 124 DOCSTRING: an optional documentation string--if you do not supply one, |
125 the function will attempt to invent something useful. | 125 the function will attempt to invent something useful. |
126 BODY: forms to execute just before running the | 126 BODY: forms to execute just before running the |
127 hooks for the new mode. | 127 hooks for the new mode. Do not use `interactive' here. |
128 | 128 |
129 Here is how you could define LaTeX-Thesis mode as a variant of LaTeX mode: | 129 Here is how you could define LaTeX-Thesis mode as a variant of LaTeX mode: |
130 | 130 |
131 (define-derived-mode LaTeX-thesis-mode LaTeX-mode \"LaTeX-Thesis\") | 131 (define-derived-mode LaTeX-thesis-mode LaTeX-mode \"LaTeX-Thesis\") |
132 | 132 |