ChatGPT is more complete than the Emacs documention

This commit is contained in:
Gerard Vermeulen 2024-06-12 10:27:44 +02:00
parent 33e4d5ca3b
commit 7ea6f46fdd

View File

@ -984,6 +984,9 @@ Emacs. Try {{{kbd(C-h o)}}} instead of {{{kbd(C-h f)}}} or {{{kbd(C-h v)}}}.
#+name: lst:setup-help
#+begin_src emacs-lisp -n :results silent
(with-eval-after-load 'help-fns
;; ChatGPT recommends to require `shortdoc' contrary to the
;; `shortdoc-help-fns-examples-function' documentation string.
(require 'shortdoc)
(add-hook 'help-fns-describe-function-functions
#'shortdoc-help-fns-examples-function)
(setopt help-enable-symbol-autoload t))