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.

Linux World | Comments | Trackback

4 Responses to “Adding scrolling to Emacs…”

  1. 1marcNo Gravatar
    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

  2. 2Enrico FranchiNo Gravatar
    November 26th, 2006 @ 10:28

    In your .emacs of course. It’s Emacs configuration, after-all.

  3. 3MaltiNo Gravatar
    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.

  4. 4Enrico FranchiNo Gravatar
    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

  1.  
  2.  
  3.  
  4. XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
You can keep track of new comments to this post with the comments feed.

Recent Posts

Blogroll

Siti amici

Misc

Recent Comments

Categories

Enrico Franchi graduated in Maths and Computer Science and is now studying for a Computet Science MSc (though because of italian bureaucracy that very course is to be cancelled).

RiK0's Tech Temple is using WP-Gravatar