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

Re: w3m Links



At Tue, 28 Jun 2011 10:36:49 -0700,
docgnome wrote:
> 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

Indeed, doesn't work for RET on my machine either.

I'm no elisp expert but I guess the hook will need to be added to something other than 'mime-view-mode-hook.

I also have this in my .emacs:

(eval-after-load "w3m"
 '(progn
 (define-key w3m-mode-map [left] 'backward-char)
 (define-key w3m-mode-map [right] 'forward-char)
 (define-key w3m-mode-map [up] 'previous-line)
 (define-key w3m-mode-map [down] 'next-line)
 (define-key w3m-minor-mode-map [left] 'backward-char)
 (define-key w3m-minor-mode-map [right] 'forward-char)
 (define-key w3m-minor-mode-map [up] 'previous-line)
 (define-key w3m-minor-mode-map [down] 'next-line)
))

(You know, because I like the arrow keys to navigate through the text, not from one link to the next.) Maybe this could be adapted.

hjh


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