?

Log in

No account? Create an account
Mousewheel in emacs! - brad's life — LiveJournal [entries|archive|friends|userinfo]
Brad Fitzpatrick

[ website | bradfitz.com ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

Mousewheel in emacs! [Aug. 12th, 2001|09:14 pm]
Brad Fitzpatrick
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
   "\C-u2\C-[xscroll-up\C-m")
(fset 'scroll-down-lines
   "\C-u2\C-[xscroll-down\C-m")
(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.
LinkReply

Comments:
[User Picture]From: christowang
2001-08-12 09:24 pm (UTC)
Last I read in your journal you were using vi. WHAT HAPPENED?! :P
(Reply) (Thread)
[User Picture]From: brad
2001-08-12 09:39 pm (UTC)
I've always been a hardcore emacs playa', yo.

I only learned vi for a few days so I could be competent enough to edit shit on new systems before I install emacs.


(Reply) (Parent) (Thread)
[User Picture]From: christowang
2001-08-12 09:42 pm (UTC)

Re:

*starts playing some cheesie West Side Story music*

VI!!! *does some chorographed dance moves*
(Reply) (Parent) (Thread)
[User Picture]From: way2tired
2001-08-12 09:59 pm (UTC)

I'm going to sound stupid, but....

I really don't like Emacs.. I guess I just never took the time to learn it well enough, so I just dig in with vi when I have to.
(Reply) (Parent) (Thread)
[User Picture]From: starblazr
2001-08-13 01:29 pm (UTC)

Re: I'm going to sound stupid, but....

PICO!!
(Reply) (Parent) (Thread)
[User Picture]From: twistah
2001-08-14 09:55 pm (UTC)

Re: I'm going to sound stupid, but....

Joe?
(Reply) (Parent) (Thread)
[User Picture]From: starblazr
2001-08-14 10:38 pm (UTC)

Re: I'm going to sound stupid, but....

ae!
(Reply) (Parent) (Thread)
[User Picture]From: whitaker
2001-08-20 01:46 pm (UTC)

Re: I'm going to sound stupid, but....

Nano!
(Reply) (Parent) (Thread)
[User Picture]From: jhf
2001-08-12 10:25 pm (UTC)
Awesome! I've been meaning to figure out how to do this for a little while now.
(Reply) (Thread)
[User Picture]From: graceadieu
2001-08-13 12:48 pm (UTC)

re: spelling

FYI, its "copious"
(Reply) (Thread)