Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Make mouse scroll wheels work in xemacs' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Make mouse scroll wheels work in xemacs
Authored by: Koenraad on Mar 05, '03 11:06:52AM

Here is an alternative, which is simpler and scrolls one line at a time:

(global-set-key 'button5 'scroll-up-one)
(global-set-key 'button4 'scroll-down-one)
(global-set-key '(control button5) 'scroll-up)
(global-set-key '(control button4) 'scroll-down)

It's not anything I came up with myself, this has been around.

Koenraad



[ Reply to This | # ]
Make mouse scroll wheels work in xemacs
Authored by: GlennT on Mar 05, '03 01:18:31PM
I get the following error, for both of these methods:
Error in init file: Wrong type argument: arrayp, button5
Any idea what's up? I can't imaging that emacs' syntax has changed, and this is relatively simple stuff.

[ Reply to This | # ]
Make mouse scroll wheels work in xemacs
Authored by: jpski on Mar 05, '03 01:36:25PM

It looks like the posted solution is an attempt to scroll the window over which the mouse cursor is currently positioned. I just tried it however & it doesn't do anything (for me - 21.4) that the simple version already does.

(global-set-key [(button4)] 'scroll-down)
(global-set-key [(button5)] 'scroll-up)



[ Reply to This | # ]