Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Steven Woody <anti-spam.narkewoody@gmail.com.dont-post-to>
Subject: Re: Firefox/Mozilla default browser
Date: Thu, 14 Jul 2005 02:47:52 +0800	[thread overview]
Message-ID: <87fyui1r1j.fsf@narke.yellow.line> (raw)
In-Reply-To: <87ackqabv5.fsf@mail.augustmail.com>

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)


      parent reply	other threads:[~2005-07-13 18:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-13 16:50 Lance Hoffmeyer
2005-07-13 18:42 ` Harald Maier
2005-07-13 18:47 ` Steven Woody [this message]

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fyui1r1j.fsf@narke.yellow.line \
    --to=anti-spam.narkewoody@gmail.com.dont-post-to \
    /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.
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 NNTP newsgroup(s).