Advise amx-describe-function to use helpful-function instead
This commit is contained in:
@@ -4175,7 +4175,14 @@ their helpful counterparts.
|
|||||||
(inhibit-duplicate-buffer . t)
|
(inhibit-duplicate-buffer . t)
|
||||||
(window-height . 0.25))
|
(window-height . 0.25))
|
||||||
:config
|
: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
|
#+end_src
|
||||||
** Avy and Ace
|
** Avy and Ace
|
||||||
Avy is a package that provides "jump" functions. Given some input,
|
Avy is a package that provides "jump" functions. Given some input,
|
||||||
|
|||||||
Reference in New Issue
Block a user