aboutsummaryrefslogtreecommitdiff
path: root/Emacs
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2025-02-17 15:03:10 +0000
committerAryadev Chavali <aryadev@aryadevchavali.com>2025-02-17 15:03:10 +0000
commita01e555a780b35e6aaaaeaf189003c8b9d2d9de4 (patch)
tree64b5816c1aa740eb2a4778a9861ce4427e43830b /Emacs
parentce4c159bb227102754467f7a2b86d44da54f1df8 (diff)
downloaddotfiles-a01e555a780b35e6aaaaeaf189003c8b9d2d9de4.tar.gz
dotfiles-a01e555a780b35e6aaaaeaf189003c8b9d2d9de4.tar.bz2
dotfiles-a01e555a780b35e6aaaaeaf189003c8b9d2d9de4.zip
Advise amx-describe-function to use helpful-function instead
Diffstat (limited to 'Emacs')
-rw-r--r--Emacs/.config/emacs/config.org9
1 files changed, 8 insertions, 1 deletions
diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org
index 10a5fe1..dbc5508 100644
--- a/Emacs/.config/emacs/config.org
+++ b/Emacs/.config/emacs/config.org
@@ -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,