From: James Harkins <jamshark70@gmail.com>
To: orgmode <emacs-orgmode@gnu.org>
Subject: HTML export is using the wrong browser
Date: Mon, 24 Mar 2014 11:04:08 +0800 [thread overview]
Message-ID: <83a9478a-b436-4d78-b7f9-eecadd803841@dewdrop-world.net> (raw)
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
next reply other threads:[~2014-03-24 3:04 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-24 3:04 James Harkins [this message]
2014-03-24 5:41 ` HTML export is using the wrong browser 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83a9478a-b436-4d78-b7f9-eecadd803841@dewdrop-world.net \
--to=jamshark70@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).