aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/programs.texi24
1 files changed, 21 insertions, 3 deletions
diff --git a/doc/emacs/programs.texi b/doc/emacs/programs.texi
index 683374c6153..865a3a67d56 100644
--- a/doc/emacs/programs.texi
+++ b/doc/emacs/programs.texi
@@ -1269,9 +1269,27 @@ information whenever there is a Lisp function or variable at point;
1269for a function, it shows the argument list, and for a variable it 1269for a function, it shows the argument list, and for a variable it
1270shows the first line of the variable's documentation string. To 1270shows the first line of the variable's documentation string. To
1271toggle Eldoc mode, type @kbd{M-x eldoc-mode}. There's also a Global 1271toggle Eldoc mode, type @kbd{M-x eldoc-mode}. There's also a Global
1272Eldoc mode, which is turned on by default, and affects buffers, such 1272Eldoc mode, which is turned on by default, and affects buffers whose
1273as @samp{*scratch*}, whose major mode is Emacs Lisp or Lisp 1273major mode sets the variables described below. Use @w{@kbd{M-x
1274Interaction (@w{@kbd{M-x global-eldoc-mode}} to turn it off globally). 1274global-eldoc-mode}} to turn it off globally.
1275
1276@vindex eldoc-documentation-function
1277@vindex eldoc-documentation-functions
1278 These variables can be used to configure ElDoc mode:
1279
1280@table @code
1281@item eldoc-documentation-function
1282This variable holds the function which is used to retrieve
1283documentation for the item at point from the functions in the hook
1284@code{eldoc-documentation-functions}. By default,
1285@code{eldoc-documentation-function} returns the first documentation
1286string produced by the @code{eldoc-documentation-functions} hook.
1287
1288@item eldoc-documentation-functions
1289This abnormal hook holds documentation functions. It acts as a
1290collection of backends for ElDoc. This is what modes should use to
1291register their documentation functions with ElDoc.
1292@end table
1275 1293
1276@node Hideshow 1294@node Hideshow
1277@section Hideshow minor mode 1295@section Hideshow minor mode