[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: probs with firefox and gnus
From: |
Xning Lee |
Subject: |
Re: probs with firefox and gnus |
Date: |
Tue, 27 Jul 2004 21:40:58 +0800 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) |
1. update-alvernatives
======================
Debian dpkg utilities, maintain symbolic links determining default
commands
2. .emacs
=====================
'(browse-url-browser-function
(quote
(("\\(ftp:\\)\\(//[-a-zA-Z0-9_.]+:[0-9]*\\)?[-a-zA-Z0-9_=!?#$@~`%&*+\\/:;.,]+[-a-zA-Z0-9_=#$@~`%&*+\\/]"
. my-download)
("." . my-browser))))
3. function: my-browser
=======================
(defun my-browser (url &optional new-window)
"Open URL in a new tab in Mozilla."
(interactive (browse-url-interactive-arg "URL: "))
(when
(string-match ".*No running window found.*"
(shell-command-to-string
(concat "mozilla -remote 'openurl(" url ",new-tab)'")))
(message "Starting Mozilla...")
(start-process (concat "mozilla " url) nil
"/bin/sh" "-c" (concat "mozilla " url "|| true"))
(message "Starting Mozilla...done")))