emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: mirko <mirko.vukovic@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Setting default browser for "export b" on Win7
Date: Tue, 22 Oct 2013 16:19:31 +0000 (UTC)	[thread overview]
Message-ID: <loom.20131022T181223-297@post.gmane.org> (raw)

I am trying to set Firefox as the default browser on my Windows 7 machine.

Here is the elisp code that modifies org-file-apps

(defun mv-org-set-export-browser (browser)
  (setq org-file-apps
	(mapcar (lambda (entry)
		  (if (string= (car entry) "\\.x?html?\\'")
		      (cons (car entry)
			    (if (equal browser 'default)
				browser
				(format "%s %s" browser "%s")))
		      entry))
		org-file-apps)))


I call it like this:

(mv-org-set-export-browser 'default
			   ;;"firefox"
			   ;;"c:/Program Files (x86)/Mozilla Firefox/firefox.exe"
)

The two commented lines are when I try to set firefox as the browser.  But
with either of them, I get no visible output.  I don't see anything in
*Messages*.  (Thus the 'default is uncommented).

I know the full path to work, as it is the same string that is used to
specify the default browser for opening URL's.

Any ideas on what is going wrong?

Thanks,

Mirko

                 reply	other threads:[~2013-10-22 16:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=loom.20131022T181223-297@post.gmane.org \
    --to=mirko.vukovic@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).