• dsemy
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    Emacs 30 actually includes a feature similar to elisp-examples, from NEWS:

    New function ‘shortdoc-help-fns-examples-function’. This function inserts into the current buffer examples of use of a given Emacs Lisp function, which it gleans from the shortdoc information. If you want ‘describe-function’ (‘C-h f’) to insert examples of using the function into regular “Help” buffers, add the following to your init file:

    (add-hook 'help-fns-describe-function-functions
              #'shortdoc-help-fns-examples-function)