all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eduardo Ochs <eduardoochs@gmail.com>
To: Jean Louis <bugs@gnu.support>
Cc: Help GNU Emacs <help-gnu-emacs@gnu.org>
Subject: Re: How to quicker jump to function definition than C-h k ?
Date: Fri, 16 Dec 2022 05:13:34 -0300	[thread overview]
Message-ID: <CADs++6gAUQuNTvvSgAx0nz3dW5qP3gbXzpjW45THL_bBVaA9bw@mail.gmail.com> (raw)
In-Reply-To: <d8db933f0f8ba198b8187f01498d4b33.support1@rcdrun.com>

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



  parent reply	other threads:[~2022-12-16  8:13 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-16  6:19 How to quicker jump to function definition than C-h k ? Jean Louis
2022-12-16  8:01 ` Marcin Borkowski
2022-12-16  8:13 ` Eduardo Ochs [this message]
2022-12-16 13:39   ` [SOLVED with eev] " Jean Louis
2022-12-16 20:28     ` Eduardo Ochs
2022-12-17  0:08     ` Emanuel Berg
2022-12-17 12:44       ` Eduardo Ochs
2022-12-18  6:58         ` Jean Louis
2022-12-18  7:51           ` Eduardo Ochs
2022-12-19 17:44 ` Vagn Johansen
2022-12-19 19:19   ` Marcin Borkowski
2022-12-19 21:22     ` Vagn Johansen
2022-12-19 22:15       ` Emanuel Berg
2022-12-20  6:02       ` Marcin Borkowski
2022-12-19 20:34   ` Emanuel Berg
2022-12-19 22:33   ` Jean Louis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CADs++6gAUQuNTvvSgAx0nz3dW5qP3gbXzpjW45THL_bBVaA9bw@mail.gmail.com \
    --to=eduardoochs@gmail.com \
    --cc=bugs@gnu.support \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.