[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to make browse-url-default-browser use emacs-w3m?
- From: Emanuel Berg <emanuel.berg.8573@xxxxxxxxxxxxx>
- Date: Tue, 24 Dec 2013 20:39:21 +0100
- X-ml-name: emacs-w3m
- X-mail-count: 12265
- References: <87lhzbeo1x.fsf@xxxxxxxxxxx>
(B> How do I make (define-key dired-mode-map "b"
(B> browse-url-of-dired-file) use emacs-w3m and not
(B> Firefox. Should I do (... browse-url-default-browser
(B> ... w3m-browse-url) ?
(BWould you like to view a .html file, listed in dired,
(Bwith w3m? In that case try:
(B(defun dired-view-in-w3m ()
(B "View the file in `w3m'."
(B (w3m-find-file (dired-get-filename) ))
(BYou can then set it up with a keystroke you like just
(Bas you did, only you need to quote it:
(B(define-key dired-mode-map "A" 'dired-view-in-w3m)
(BEmanuel Berg, programmer-for-rent. CV, projects, etc at uXu
(Bunderground experts united: http://user.it.uu.se/~embe8573