Default browser from emacs

Let's say that you're at work, and a number of work-related web-apps just work better in Internet Explorer* so you've made it the default browser.

But you want to open up files from within Emacs inside of Firefox, not IE.

So, how d'ye do it?

(setq browse-url-browser-function #'browse-url-firefox)

That seems to do the trick.

* sigh

System-default browser from emacs, anyway

UPDATE: Tuesday, September 8, 2015

So, let's say you want most browser-destined items in Emacs to open in the non-default browser, and you've redefined the Emacs browser, as above.

How do you open certain URLs in the system default browser (because a number of work-related web-apps just work better only work in Internet Explorer*)?

Use open-path-external -- this will trip the system's default handler for the protocol (http:// in this case).

(open-path-external "http://enterprise.app.that.only.works.in/internet.explorer.jsp"

Yeah, that's right. We're a Windows shop, using a Java application that only works in IE.

OH BRAVE NEW WORLD THAT HATH SUCH PEOPLE IN'T!