this post was submitted on 29 Nov 2023
1 points (100.0% liked)
Emacs
313 readers
2 users here now
A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!
Get Emacs
Rules
- Posts should be emacs related
- Be kind please
- Yes, we already know: Google results for "emacs" and "vi" link to each other. We good.
Emacs Resources
Emacs Tutorials
- Beginner’s Guide to Emacs
- Absolute Beginner's Guide to Emacs
- How to Learn Emacs: A Hand-drawn One-pager for Beginners
Useful Emacs configuration files and distributions
Quick pain-saver tip
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
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