[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Firefox/Mozilla default browser
From: |
Steven Woody |
Subject: |
Re: Firefox/Mozilla default browser |
Date: |
Thu, 14 Jul 2005 02:47:52 +0800 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) |
Lance Hoffmeyer<lance-news@augustmail.com> writes:
> Hey,
>
> I am having problems getting mozilla as my default browser.
> I have put
>
> (setq browse-url-browser-function 'browse-url-mozilla)
>
> in both ~/.xemacs/custom.el and ~/.gnus
>
> but whenever I click on a link in rss://whatever it still
> brings up the link inline via w3 or w3m. I wouldn't mind
> using w3/w3m (what is the difference between the two of these?)
> but
> 1) as slow as firefox is loading up I think w3 is slower
> 2) W3 does not load a lot of the pages properly
>
>
> Maybe part of this is my configuration of W3 but until I figure it
> out I would prefer to use firefox as my default browser.
>
> Perhaps there is a way to have xemacs ask me which browser I want to
> use (firefox or w3m) when I RET on a link? Or, perhaps I can add
> some conditions for either firefox or w3m to load when in a certain
> RSS group? Any thoughts? I know just enough about lisp to be really
> dangerous! Wish one could use perl or python instead (no flames please :)
> Not that good with these but at least a little more knowledgeable.
>
> Lance
if what you want is just lauch firefox or mozilla, here is a smaple for you,
(defun browse-url-firefox-new-tab (url &optional new-window)
"Open URL in a new tab in Firefox."
(interactive (browse-url-interactive-arg "URL: "))
(let ((cmd (shell-command-to-string
(concat "~/src/firefox/mozilla-xremote-client -a any 'openURL("
url ",new-tab)'"))))
(unless (string= "" cmd)
(message "Starting Firefox...")
(start-process (concat "firefox " url) nil "/usr/local/bin/firefox" url)
(message "Starting Firefox...done"))))
(setq browse-url-browser-function 'browse-url-firefox-new-tab)