From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: Opening html-File in Dired with w3m Date: Tue, 27 Jul 2004 18:45:38 +1000 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87r7qxltxp.fsf@tiger.rapttech.com.au> References: <87u0w3kqex.fsf@ortler.iwr.uni-heidelberg.de> Reply-To: timx@spamto.devnul.com NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1090918089 9178 80.91.224.253 (27 Jul 2004 08:48:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 27 Jul 2004 08:48:09 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 27 10:48:03 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BpNcw-0001fd-00 for ; Tue, 27 Jul 2004 10:48:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BpNg1-0005ep-Qh for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Jul 2004 04:51:13 -0400 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:U4HMzbU9PiCmZgNV3sIN8W39tFA= Original-NNTP-Posting-Host: ppp202-24.lns1.syd3.internode.on.net Original-X-Trace: duster.adelaide.on.net 1090917915 203.122.202.24 (27 Jul 2004 18:15:15 +0950) Original-Lines: 37 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!news.ks.uiuc.edu!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news-out.visi.com!news-out.octanews.net!petbe.visi.com!news1.optus.net.au!optus!snewsf0.syd.ops.aspac.uu.net!duster.adelaide.on.net!not-for-mail Original-Xref: shelby.stanford.edu gnu.emacs.help:124490 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:19826 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19826 >>>>> "Nicolas" == Nicolas Neuss writes: Nicolas> Hello! Is it possible to configure Dired such that it uses Nicolas> w3m when opening a file with html-extension? (Or info when Nicolas> opening a .info-File, etc?) Nicolas> Thanks, Nicolas. I use the browse-url package for this. Here is the section from my .emacs (I "stole" this from a post to this group sometime ago - can't remember who from :-( (defun w3m-browse-url-other-window (url &optional arg) "Browse URL with w3m, use other window." (interactive (browse-url-interactive-arg "w3m URL: ")) (when (stringp url) (let ((buffer (get-buffer "*w3m*"))) (switch-to-buffer-other-window (if buffer buffer (current-buffer))) (w3m-goto-url url)))) (global-set-key "\C-c\C-z." 'browse-url-at-point) (global-set-key "\C-c\C-zb" 'browse-url-of-buffer) (global-set-key "\C-c\C-zr" 'browse-url-of-region) (global-set-key "\C-c\C-zu" 'browse-url) (global-set-key "\C-c\C-zv" 'browse-url-of-file) (add-hook 'dired-mode-hook (lambda () (local-set-key "\C-c\C-zf" 'browse-url-of-dired-file))) -- Tim Cross The e-mail address on this message is FALSE (obviously!). My real e-mail is to a company in Australia called rapttech and my login is tcross - if you really need to send mail, you should be able to work it out!