Determine the path to the source code of the current mode in Emacs 23

I am launching a new Python mode for Emacs 23, but I am not sure how to determine if I am using the new mode (source code located in ~/.elisp/python.el) or nested python.elmode.

Is there any way to find out where the current (or any active) mode was loaded from? C-h mdoesn't seem to provide this information, and I don't know where else to look.

+3
source share
1 answer

C-h f python-mode RET will tell you in which file it lives, and you can go to this file by following the link.

You can also use M-x find-function RET python-mode RETto go there directly.

(I feel comfortable having find-functionattached to C-h C-f)

In general, you can use the following:

M-: (find-function major-mode) RET

+8
source

Source: https://habr.com/ru/post/1794279/


All Articles