I posted Goto Address Mode Opens Links in Emacs on Tuesday, 4 February, 2020

Use `goto-address-mode` to make links in Emacs buffers clickable

Goto Address Mode Opens Links in Emacs
Post emacs

Goto Address Mode Opens Links in Emacs

Org mode has this nice thing where you can click a link in the buffer to open it in your browser. Turns out that’s not some special org-only behavior. It’s goto-address-mode, a minor mode that activates URLs and email addresses in the current buffer.

You can manually launch it with M-x goto-address-mode. It might be easier to automatically enable it for certain modes. You do that with a hook.

I want links to be available when reviewing notes and blog posts. Since I write those notes in a number of formats, I should add the hook one of the general major modes. text-mode is a good start.

;; base mode for prose
(add-hook 'text-mode-hook (lambda ()

Now I can open links from my Markdown and RST files with a click! Or a C-c <RET>.

Table 1. goto-address-mode key bindings
C-c <RET>goto-address-at-pointOpens the link under point

I might add the hook for prog-mode later, if I find myself wanting to click URLs in source code.

Indieweb Social

Did you mention this somewhere? I'd love it if you sent me the link!

disclaimer about timing

Mentions are sent to webmention.io. I fetch the latest mentions when building the site, so I may not see your feedback right away. Especially if my site's broken, which is often the case.

Public replies and mentions might be shared on the site, but I try to do a little quality check first.

Site Links