timor <timor...@gmail.com> writes: > The thing is, I have a lot of code blocks that define functions, which > are named exactly after that function. And as I frequently want to > reference one of those in the text, I don't want to say > > [[test_fun][test_fun]] .. > [[another_long_function][another_long_function]]... > > everytime, since [[test_fun]] already contains all the information > needed to generate the link, and the description. The description is > always the same as the link target. That is why I would want to > change the way that the default link description is generated in the > case that none is provided.
You can use a hook, which will work at the Org level, or a filter, to work at the HTML level. See, e.g., (info "(org) Advanced configuration"). > I think that would make sense, given that the way the default > description is generated at the moment does not seem to provide any > benefit. It does, but not in your example. See (info "(org) Internal links") for details. Regards,