1
Replacing hyperlinks with shorthand phrase
(alien.top)
A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!
you can do this with an Overlay, if you know where the link starts and ends. For example I have the buffer README.org
the first character of the link is the 60th and the last is the 103rd. So I could write
Clicking the "link" text still opens YouTube as expected.
To do this all over a buffer you'd want to add a
font-lock
rule based on a regular expression likebrowse-url-button-regexp
.If you only need it in Org files, there's probably some machinery to facilitate that as well