[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: w3m Links
At Tue, 28 Jun 2011 09:32:31 +0800,
James Harkins wrote:
>
> 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)
> ))
I tried
(add-hook 'mime-view-mode-hook
'(lambda()
(local-set-key (kbd "RET") 'browse-url-at-point)))
but RET is still bound to w3m-safe-view-this-url
Dave