all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* HTML export is using the wrong browser
@ 2014-03-24  3:04 James Harkins
  2014-03-24  5:41 ` Bastien
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: James Harkins @ 2014-03-24  3:04 UTC (permalink / raw)
  To: orgmode

OK, org is awesome, but sometimes it drives you crazy.

I have just lost an hour this morning trying to figure out how to convince 
HTML export to open the exported file in Firefox, rather than Chrome.

I noticed that C-c C-e h o was running "sensible-browser," and after half 
an hour's completely wasted effort trying to understand the 
update-alternatives system, the only thing I know is that Chrome's priority 
in the system is 200 while Firefox is 40. That explains why 
sensible-browser is choosing Chrome. But I can't find any example of a 
command that will change the priority of an existing link.

So then I started poking around org options. I found that C-c C-o on an 
http hyperlink goes through browse-url, and I can configure 
browse-url-generic-program to Firefox, and C-c C-o does open such links in 
Firefox. Okay... but, C-c C-e h o *still* uses sensible-browser and opens 
it in the wrong program.

I opened the complete org manual (all on one page) and searched the page 
for "browser." There is NO help anywhere in this document about the browser 
to use for HTML export.

So then I found:

	(?o "As HTML file and open"
	    (lambda (a s v b)
	      (if a (org-html-export-to-html t s v b)
		(org-open-file (org-html-export-to-html nil s v b)))))))

And, looking over the definition of org-open-file, and realizing I've spent 
*a whole hour* on this problem that should be a simple matter of setting 
ONE option, I conclude... this is way too much of a puzzle. So I give up.

This should be a simple thing, so... can somebody please tell me a simple 
way to configure this?

(Yes, I am frustrated.)

hjh

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-03-24 11:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-24  3:04 HTML export is using the wrong browser James Harkins
2014-03-24  5:41 ` Bastien
2014-03-24  5:55   ` Marcin Borkowski
2014-03-24  8:37 ` Achim Gratz
2014-03-24  8:40 ` Eric S Fraga
2014-03-24  9:44   ` James Harkins
2014-03-24 11:21     ` Achim Gratz

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.