Brad Fitzpatrick (brad) wrote,
Brad Fitzpatrick

Mousewheel in emacs!

OMG how did I forgot to post about this!?! I figured out how to get my wheel mouse working in emacs.... yay for info pages!

Put this in your ~/.emacs file:

(fset 'scroll-up-lines
(fset 'scroll-down-lines
(global-set-key [mouse-5] 'scroll-up-lines)
(global-set-key [mouse-4] 'scroll-down-lines)

Bad. Ass.

I tried getting it to focus the buffer it was over instead of having to click once (when you have a window split) but couldn't quite figure it out. I'll keep working on it in my copius copious free time.

  • Stuck in garage

    Omg... I'm stuck in my garage. My ADT security system had some fault (radio error contacting tower?) and the house started beeping. Phone call from…

  • Sure 'nuff

    In summary: -- missed my first leg, booked through work, through Expedia -- Expedia won't help, sending me to United (tried 3 times) -- United won't…

  • XM radio can blow me

    Is it just me (and my dad), or does XM Radio sound like an over-compressed mp3 coming through a tincan telephone? My XM radio free trial is expiring…

  • Post a new comment


    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.