From: Francois Fleuret <francois.fleuret@inria.fr>
Subject: Re: Help:Enable mouse wheel
Date: 14 May 2003 17:57:56 +0200 [thread overview]
Message-ID: <s02el314j23.fsf@wasabi.inria.fr> (raw)
In-Reply-To: TQjwa.25682$231.14662@fed1read04
Hi people,
Jasen wrote on 14 May 2003 02:44:38 MET:
> Does anybody know how to enable mouse wheel on Linux? I'm using Redhat
> 8.0 and Emacs 21.2.
I personnaly have the following in my .emacs (with the standard
settings, which is mouse wheel behave like buttons 4 and 5):
,----
| ;; Wheel mouse moves up and down 2 lines
| (define-key global-map [mouse-4] (lambda () (interactive) (scroll-down 2)))
| (define-key global-map [mouse-5] (lambda () (interactive) (scroll-up 2)))
|
| ;; with shift it goes faster
| (define-key global-map [(shift mouse-4)] (lambda () (interactive) (scroll-down 50)))
| (define-key global-map [(shift mouse-5)] (lambda () (interactive) (scroll-up 50)))
|
| ;; with control it controls the buffer we are looking at
| (define-key global-map [(control mouse-4)] 'next-buffer)
| (define-key global-map [(control mouse-5)] 'bury-buffer)
`----
Regards,
FF
prev parent reply other threads:[~2003-05-14 15:57 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-14 1:44 Help:Enable mouse wheel Jasen
[not found] ` <mailman.6162.1052890544.21513.help-gnu-emacs@gnu.org>
2003-05-14 3:03 ` Jasen
2003-05-14 3:03 ` Jasen
2003-05-14 3:04 ` Jasen
2003-05-14 7:17 ` Dan Anderson
2003-05-14 4:57 ` Paul D. Smith
2003-05-14 5:26 ` Dan Anderson
2003-05-14 7:22 ` Jiri Pejchal
2003-05-14 15:57 ` Francois Fleuret [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=s02el314j23.fsf@wasabi.inria.fr \
--to=francois.fleuret@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).