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

Re: middle click to open url in new session



>>>>> In [emacs-w3m : No.09454] Leo wrote:

> ----- Katsumi Yamaoka (2007-01-17) wrote:-----

[...]

>> (define-key w3m-mode-map [mouse-2] 'w3m-mouse-view-this-url-new-session)
>>
>> (defadvice mouse-drag-track (after replace-mouse-2-event activate)

[...]

> I have been using this trick for quite sometime now. But recently I
> start using Emacs in xterm and this trick will always open a link in a
> new tab. Can this be fixed?

> To use mouse in xterm, you need to have xterm-mouse-mode enabled.

This will work with both X and xterm:

Attachment: binPaYWCugJBK.bin
Description: application/emacs-lisp

Regards,