[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: w3m Links



At Mon, 27 Jun 2011 11:41:52 -0700,
docgnome wrote:
> Anyone know how to rebind RET when using w3m to display html emails?
> It's currently bound to w3m-safe-view-this-url which I don't want to
> use, I want to use browse-url.

You could follow this model -- thanks to the wl list member who showed me this in the first place :)

; disable 'v' in mime-view map
; (define-key mime-view-mode-default-map "v" () )
(add-hook
 'mime-view-mode-hook
 '(lambda ()
    "Disable 'v' for mime-play."
    ;; Key bindings
;    (local-set-key [down-mouse-2] 'mouse-drag-drag)
    (local-set-key [?v] () )
    (local-set-key (kbd "C-c C-w") 'browse-url-at-point)
    (local-set-key (kbd "C-c C-S-w") 'w3m-view-url-with-external-browser)
    ))

James


--
James Harkins /// dewdrop world
jamshark70@dewdrop-world.net
http://www.dewdrop-world.net

"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal."  -- Whitman

blog: http://www.dewdrop-world.net/words
audio clips: http://www.dewdrop-world.net/audio
more audio: http://soundcloud.com/dewdrop_world/tracks