Emacs: how do I get to the definition of a function in a .el file?

I tried to modify the init file. Is there any possible way to quickly move on to defining the function of another .el file that is already loaded / required?

I remember doing it once, but I don’t remember how ...

+43
emacs
Nov 19 2018-10-11T00:
source share
4 answers

Mx find-function RET (function name) RET

I find that Ch Cf does a good keybinding for find-function (given that Ch f is bound to describe-function by default)

(global-set-key (kbd "Ch Cf") 'find-function)

+47
Nov 19 '10 at 10:18
source share

etags [options] file1 file2 ... and then from inside emacs do M-. to visit the tag. To go to the next tag input, execute M-,

+4
Nov 19 '10 at 4:56
source share

Starting with emacs-25.1 , a new universal function, xref-find-definitions . The built-in xref package provides a general framework for navigating definitions in code. It will probably take some time for each mode to configure custom functions for this structure, but at least emacs-lisp-mode has already been ported.

+4
Jul 24. '16 at 12:03
source share

find-function is the path. An alternative is to use Ch f , then click the file name in the *Help* buffer.

+3
Aug 20 '11 at 20:24
source share



All Articles