From c2009b56ec95390151a59d748814b91541e1ee78 Mon Sep 17 00:00:00 2001 From: Howard Abrams Date: Sat, 10 Aug 2024 12:34:21 -0700 Subject: [PATCH] Pulling in the helpful package before using it --- ha-general.org | 6 ++++++ ha-programming-elisp.org | 2 +- templates/{dir-locals.el => dir-locals} | 0 3 files changed, 7 insertions(+), 1 deletion(-) rename templates/{dir-locals.el => dir-locals} (100%) diff --git a/ha-general.org b/ha-general.org index 47351fa..88ecebe 100644 --- a/ha-general.org +++ b/ha-general.org @@ -849,6 +849,7 @@ Unfilling a paragraph joins all the lines in a paragraph into a single line. Tak * Help Operations While the ~C-h~ is easy enough, I am now in the habit of typing ~SPC h~ instead. Since I tweaked the help menu, I craft my own menu: + #+begin_src emacs-lisp (ha-leader "h" '(:ignore t :which-key "help") @@ -881,6 +882,11 @@ Since I tweaked the help menu, I craft my own menu: "h C-g" '(keyboard-escape-quit :which-key t)) #+end_src +Some of these call the [[file:ha-programming-elisp.org::*Helpful Functions][Helpful]] package: +#+begin_src emacs-lisp + (use-package helpful) +#+end_src + Remember these keys in the *Help* buffer: - ~s~ :: view source of the function - ~i~ :: view info manual of the function diff --git a/ha-programming-elisp.org b/ha-programming-elisp.org index 0692926..de4f14b 100644 --- a/ha-programming-elisp.org +++ b/ha-programming-elisp.org @@ -46,7 +46,7 @@ Show code examples with the [[https://github.com/xuchunyang/elisp-demos][elisp-d :config (advice-add 'describe-function-1 :after #'elisp-demos-advice-describe-function-1)) #+end_src -** Better Function Help +** Helpful Functions Let’s take advantage of [[https://github.com/Wilfred/helpful][helpful]] package for getting more information into the =describe-function= call. #+begin_src emacs-lisp diff --git a/templates/dir-locals.el b/templates/dir-locals similarity index 100% rename from templates/dir-locals.el rename to templates/dir-locals