Mercurial > emacs
changeset 62259:61b87484a6ec
(Generic Modes): Update.
(Major Modes): Refer to node "Generic Modes".
author | Lute Kamstra <lute@gnu.org> |
---|---|
date | Thu, 12 May 2005 13:20:56 +0000 |
parents | 1eeee39ce994 |
children | a0af6e05c03a |
files | lispref/modes.texi |
diffstat | 1 files changed, 4 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- a/lispref/modes.texi Thu May 12 13:19:29 2005 +0000 +++ b/lispref/modes.texi Thu May 12 13:20:56 2005 +0000 @@ -71,10 +71,9 @@ 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}. +comments and fontification, you can use @code{define-generic-mode}. +@xref{Generic Modes}. 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 @@ -873,7 +872,7 @@ @code{define-generic-mode}. See the file @file{generic-x.el} for some examples of the use of @code{define-generic-mode}. -@defmac define-generic-mode mode comment-list keyword-list font-lock-list auto-mode-list function-list &optional docstring &rest custom-keyword-args +@defmac define-generic-mode mode comment-list keyword-list font-lock-list auto-mode-list function-list &optional docstring This macro creates a new generic mode. The argument @var{mode} (an unquoted symbol) is the major mode command. The optional argument @var{docstring} is the documentation for the mode command. If you do @@ -902,16 +901,7 @@ @var{function-list} is a list of functions to call to do some additional setup. The mode command calls these functions just before -it runs the mode hook. - -The optional @var{custom-keyword-args} are pairs of keywords and -values to include in the generated @code{defcustom} form for the mode -hook variable @code{@var{mode}-hook}. The default value for the -@samp{:group} keyword is @var{mode} with the final @samp{-mode} (if -any) removed. Don't use this default group name unless you have -written a @code{defgroup} to define that group properly (@pxref{Group -Definitions}). You can specify keyword arguments without specifying a -docstring. +it runs the mode hook variable @code{@var{mode}-hook}. @end defmac @node Mode Hooks