Advise amx-describe-function to use helpful-function instead

This commit is contained in:
2025-02-17 15:03:10 +00:00
parent ce4c159bb2
commit a01e555a78

View File

@@ -4175,7 +4175,14 @@ their helpful counterparts.
(inhibit-duplicate-buffer . t)
(window-height . 0.25))
:config
(evil-define-key 'normal helpful-mode-map "q" #'quit-window))
(evil-define-key 'normal helpful-mode-map "q" #'quit-window)
;; Override amx-describe-function to use helpful instead
(with-eval-after-load "amx"
(define-advice amx-describe-function (:override (&rest r))
"Use helpful-function to describe current function in amx."
(interactive)
(amx-do-with-selected-item (lambda (chosen)
(helpful-function chosen))))))
#+end_src
** Avy and Ace
Avy is a package that provides "jump" functions. Given some input,