Adding scrolling to Emacs…
November 19th, 2006
Easy…
;; mouse-wheel: scroll (global-set-key [mouse-4] 'scroll-down) (global-set-key [mouse-5] 'scroll-up)
I found a lot of posts about this, but none worked for me. I just took some pieces of information here and there and I came up with this (that works for me).
Emacs 21.4 on Ubuntu PPC.
4 Responses to “Adding scrolling to Emacs…”
1marc
November 25th, 2006 @ 19:38
Hello!
I am a very new user of gnu/Linux and have just installed Ubuntu 6.10.
There’s no way I can make the scroll work. I tried changing the protocol in /etc/X11/xorg.conf but it doesn’t seem to work.
Where should I try to type these lines? (sorry for my ignorance :-p)
Thanks!
marc
2Enrico Franchi
November 26th, 2006 @ 10:28
In your .emacs of course. It’s Emacs configuration, after-all.
3Malti
December 10th, 2006 @ 05:45
Brilliant! Thanks a bunch for that fix.
Marc, just copy and paste Enrico’s code into a file you name .emacs in your home directory.
4Enrico Franchi
December 11th, 2006 @ 06:52
You’re welcome. In fact I didn’t know if this configuration is ‘universal’ or works only with some versions. I’m no Emacs expert, I use an empirical approach.
Unfortunately I found a lot of solutions to this very problem, but they did not work or worked partially. I hope this works.
Leave a Reply