help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to quicker jump to function definition than C-h k ?


From: Eduardo Ochs
Subject: Re: How to quicker jump to function definition than C-h k ?
Date: Fri, 16 Dec 2022 05:13:34 -0300

On Fri, 16 Dec 2022 at 03:21, Jean Louis <bugs@gnu.support> wrote:
>
> I often wish to jump to function definition of a key and currently I
> use `C-h k' flow, then I press `C-x o' to switch to different window
> and again `TAB' to reach to the file where function is located, then
> `RET' to reach finally to the function definition.
>
> For my personal needs I would like to switch straight to the function
> definition of a key.
>
> Maybe such feature already exists, does anybody know how?

Hi Jean Louis,
try this:

;; Try: (eek "M-h M-k  <right>")
;;      (eek "M-h M-k  <right>   12*<down>")
;;      (eek "M-h M-k  <right>   12*<down> M-e")
;;      (eek "M-h M-k  M-h M-k  ;; find-ekey-links")
;;      (find-efunction 'find-ekey-links)
;;      (find-efunction 'ee-find-eboundkey-links)
;;      (find-definition-for-key (kbd "<right>"))

(defun find-definition-for-key (key &rest pos-spec-list)
"Based on `find-ekey-links' (`M-h M-k') and `find-efunction'."
  (interactive "kFunction definition for Key: ")
  (find-efunction (key-binding key)))

(defalias 'fdk 'find-definition-for-key)

  Cheers,
    Eduardo Ochs
    http://angg.twu.net/#eev



reply via email to

[Prev in Thread] Current Thread [Next in Thread]