[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: key remapping
- From: Katsumi Yamaoka <yamaoka@xxxxxxx>
- Date: Thu, 20 Mar 2014 07:22:48 +0900
- X-ml-name: emacs-w3m
- X-mail-count: 12295
- References: <53297D9D.4060505@xxxxxxxxxxxxxxxxxxx>
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].