all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Setting default browser for "export b" on Win7
@ 2013-10-22 16:19 mirko
  0 siblings, 0 replies; only message in thread
From: mirko @ 2013-10-22 16:19 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-10-22 16:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-22 16:19 Setting default browser for "export b" on Win7 mirko

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.