I have a lot of my emacs configuration in an org babel file, which I load with org-babel-load-file
. My configuration is in my-emacs-config.org
.
When I use describe-function
for one of the functions I define there, it links to the tangled .el
file, but I'd like it to link to my org file.
For example:
my-function is a Lisp function in ‘../my-emacs-config.el’.
(my-function)
Blah blah documentation for my function here.
[back]
The ../my-emacs-config.el
is a link. But I want that to link to ../my-emacs-config.org
-- the original org source file.
Note that the manual has a bit on the :comments link
header argument (see here) but that just seems to put an org-mode style link at the top of the output .el
file. I want something that advises describe-function
or somehow gives me a link to the org source file.
Any ideas?
.org
files and the corresponding tangled.el
files in the same directory? If so, you can get the.el
file and interject a transformation to the corresponding.org
file, perhaps by redefiningfind-list-object-file-name
which is the function used bydescribe-function
to get the path.