When I click on links in my org-mode buffer it opens up my external browser. How can I make Emacs default to eww (and let me open up an external browser from there if I wish)?
As noted in the EWW info manual node you can use EWW as a target for browse-url, which is what Org uses if a URI starts with "http", "https", etc. You can of course customize browse-url behaviour with
M-x customize-group browse-url
Alternatively, add the following to
(setq browse-url-browser-function 'eww-browse-url)
If you're visiting a webpage in EWW you can hit
(eww-browse-with-external-browser) to open the page in an external browser.
I set firefox as my default browser with
(setq browse-url-browser-function 'browse-url-generic browse-url-generic-program "firefox")
I can't test it with
eww because I'm on Emacs 24.3.1 -- but this might work (perhaps with a modification -- since
eww seems to be an emacs package, instead of an external program).