From 0922e1f3bfc0d1cbebbb38dba4f697346a9d030a Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Wed, 6 May 2020 10:13:41 -0400 Subject: [PATCH] Document inform button reimplementations --- emacs/init.org | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/emacs/init.org b/emacs/init.org index 6771ec5..f32d19d 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -6027,20 +6027,22 @@ buffers: :straight (:host github :repo "dieter-wilhelm/inform") :defer 0 :config - (define-button-type 'inform-function - :supertype 'inform-xref - 'inform-function 'helpful-function - 'inform-echo (purecopy "mouse-2, RET: describe this function")) + ;; If Helpful is installed, link to Helpful buffers instead of vanilla help + (with-eval-after-load 'helpful + (define-button-type 'inform-function + :supertype 'inform-xref + 'inform-function 'helpful-function + 'inform-echo (purecopy "mouse-2, RET: describe this function")) - (define-button-type 'inform-variable - :supertype 'inform-xref - 'inform-function 'helpful-variable - 'inform-echo (purecopy "mouse-2, RET: describe this variable")) + (define-button-type 'inform-variable + :supertype 'inform-xref + 'inform-function 'helpful-variable + 'inform-echo (purecopy "mouse-2, RET: describe this variable")) - (define-button-type 'inform-symbol - :supertype 'inform-xref - 'inform-function #'helpful-symbol - 'inform-echo (purecopy "mouse-2, RET: describe this symbol"))) + (define-button-type 'inform-symbol + :supertype 'inform-xref + 'inform-function #'helpful-symbol + 'inform-echo (purecopy "mouse-2, RET: describe this symbol")))) #+END_SRC * Vuiet