all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tim X <timx@spamto.devnul.com>
Subject: Re: Opening html-File in Dired with w3m
Date: Tue, 27 Jul 2004 18:45:38 +1000	[thread overview]
Message-ID: <87r7qxltxp.fsf@tiger.rapttech.com.au> (raw)
In-Reply-To: 87u0w3kqex.fsf@ortler.iwr.uni-heidelberg.de

>>>>> "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!

      parent reply	other threads:[~2004-07-27  8:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-20  8:56 Opening html-File in Dired with w3m Nicolas Neuss
2004-07-20 15:17 ` Marco Parrone
2004-07-27  8:45 ` Tim X [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=87r7qxltxp.fsf@tiger.rapttech.com.au \
    --to=timx@spamto.devnul.com \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.