[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: middle click to open url in new session
>>>>> 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)
Regards,