[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: query: remapping a mouse press
From: |
Tak Kunihiro |
Subject: |
Re: query: remapping a mouse press |
Date: |
Sat, 25 Aug 2018 14:15:58 +0900 (JST) |
>>> I am having trouble enabling mouse-wheel-tilt-scroll
>>>
>>> Currently I have
>>>
>>> mouse-wheel-tilt-scroll is a variable defined in `mwheel.el'.
>>> Its value is t
>>> Original value was nil
>>>
>>> Possibly it is because my logitech mouse has many buttons and tilting
>>> the wheel generates mouse-6 and mouse-7, which are bound to scroll-down
>>> and scroll-up. I want to bind mouse-6 to scroll-left and tried several
>>> variations on
>>>
>>> (define-key global-map <mouse-6> 'scroll-left)
>>
>> Disable mouse-wheel-mode by `M-x mouse-wheel-mode' then see if tilting
>> gives `<wheel-right> is undefined' or `<wheel-left> is undefined'. If
>> not, configure Logitech mouse.
>>
>> Following is not necessary.
>>
>> (define-key global-map [mouse-6] 'mwheel-scroll)
>
> Thanks. I hadn't realized I need to also set mouse-wheel mode.
> Now is works.
Is `mouse-wheel-mode' ON by default, isn't it?
Anyway, it is good to hear that it works for you.
If you like operation by mouse, please check
`mouse-drag-and-drop-region' too.