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

Re: key remapping



In [emacs-w3m : No.12294] Max wrote:
> I'd like to change some of the w3m keybindings to those I'm used to but I would liek
> to preserve defaults for the rest of them.

> How do I do that? Searching for that revealed few receipts but none seems to actually
> work :(

> For example - how do I make use of
> - backspace to go to previous page
> - mouse middle-click to open the link in new tab

Try adding this snippet to your ~/.emacs-w3m.el (or ~/.emacs-w3m,
perhaps) file:

(define-key w3m-mode-map [backspace] 'w3m-previous-buffer)
(define-key w3m-mode-map [mouse-2] 'w3m-mouse-view-this-url-new-session)

Note that the backspace key may be altered to another
representation for some reason.  So, you may need to try
something like "\C-h" instead of [backspace].