Comments in source code often contain URL's. It would be nice to have these (or links in any plain text context) rendered as clickable links for the convenience factor when navigating a file using the mouse.
Q: Is there built-in emacs functionality or a packate that automatically render text segments that appear to be URL's as clickable links?
If this doesn't already exist, I'm inclined to implement it as a minor mode using
auto-overlays. If you have implementation advice I would appreciate it!
Note: I'm aware that
browse-url defaults to the URL at point.
Edit for clarification:
I am specifically interested in rendering URL's so that
http://www.google.com found anywhere within a buffer to which the link rendering behavior has been applied automatically render as
- a distinct underlined link face applied
- a keymap applied to that segment
- a mouse face applied to emphasize that it is clickable
- a 'help-echo value set that decodes url-encoded characters for readability
I only mention
browse-url for completeness regarding the suggestion that fontifying the link is unnecessary.