[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Opening html-File in Dired with w3m
From: |
Tim X |
Subject: |
Re: Opening html-File in Dired with w3m |
Date: |
Tue, 27 Jul 2004 18:45:38 +1000 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
>>>>> "Nicolas" == Nicolas Neuss <Nicolas.Neuss@iwr.uni-heidelberg.de> 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!