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

Re: middle click to open url in new session



On 2007-01-16, Katsumi Yamaoka said:

>>>>>> In [emacs-w3m : No.09073] Leo wrote:
>
>>> I want to bind mouse-2 to open url in new session. I tried
>>>
>>>   (define-key w3m-mode-map [mouse-2] 'w3m-view-this-url-new-session)
>>>
>>> But then, mouse-1 also opens url in new session. Any ideas?
>>>
>>> Thanks,
>
>> help?
>
> First, you had better use `w3m-mouse-view-this-url-new-session'
> rather than `w3m-view-this-url-new-session', I think.  Second,
> visit the NEWS file using `C-h n' and see the
>
> ``You can now follow links by clicking Mouse-1 on the link.''
>
> section.  I use the following in the ~/.emacs file to make mouse-1
> not behave like mouse-2.
>
> (setq mouse-1-click-follows-link nil
>       mouse-1-click-in-non-selected-windows nil)
>

Seems I am hitting the limit of Emacs ;) Thanks for the help.

It'd be best if mouse-1 could do w3m-mouse-view-this-url and mouse-2
w3m-mouse-view-this-url-new-session. Is this possible in Emacs 22?

-- 
Leo <sdl.web AT gmail.com>                         (GPG Key: 9283AA3F)