@@ -1269,9 +1269,27 @@ information whenever there is a Lisp function or variable at point;
12691269for a function, it shows the argument list, and for a variable it
12701270shows the first line of the variable's documentation string. To
12711271toggle Eldoc mode, type @kbd {M-x eldoc-mode }. There's also a Global
1272- Eldoc mode, which is turned on by default, and affects buffers, such
1273- as @samp {*scratch* }, whose major mode is Emacs Lisp or Lisp
1274- Interaction (@w {@kbd {M-x global-eldoc-mode }} to turn it off globally).
1272+ Eldoc mode, which is turned on by default, and affects buffers whose
1273+ major mode sets the variables described below. Use @w {@kbd {M-x
1274+ global-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
1282+ This variable holds the function which is used to retrieve
1283+ documentation 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
1286+ string produced by the @code {eldoc-documentation-functions } hook.
1287+
1288+ @item eldoc-documentation-functions
1289+ This abnormal hook holds documentation functions. It acts as a
1290+ collection of backends for ElDoc. This is what modes should use to
1291+ register their documentation functions with ElDoc.
1292+ @end table
12751293
12761294@node Hideshow
12771295@section Hideshow minor mode
0 commit comments