# HG changeset patch # User Richard M. Stallman # Date 1114513041 0 # Node ID 7f8f03acf7febfeb19b84b9f69c4ef441ab72a15 # Parent 48375a96a41a29c30382ebc8553f7bae2567e369 (Major Mode Conventions): Explain customizing ElDoc mode. diff -r 48375a96a41a -r 7f8f03acf7fe lispref/modes.texi --- a/lispref/modes.texi Tue Apr 26 10:55:24 2005 +0000 +++ b/lispref/modes.texi Tue Apr 26 10:57:21 2005 +0000 @@ -255,6 +255,11 @@ @code{imenu-create-index-function} (@pxref{Imenu}). @item +The mode can specify a local value for +@code{eldoc-documentation-function} to tell ElDoc mode how to handle +this mode. + +@item Use @code{defvar} or @code{defcustom} to set mode-related variables, so that they are not reinitialized if they already have a value. (Such reinitialization could discard customizations made by the user.)