Minor Org-Mode Features

This post builds upon a previous post about org-mode links.

Smart Browser Selection

Clicking a URL inside of org-mode opens your default browser. This behavior can be customized using the variable browse-url-browser-function, which is handy if a website only loads in a specific browser. You can either write your own URL handler, or you can specify a regex based lookup list:

(setq browse-url-browser-function '(("intranet" . browse-url-chrome)
                                    ("google" . browse-url-chrome)
                                    ("." . browse-url-default-browser)))

Published: 2021-05-26