From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Francois Fleuret Newsgroups: gmane.emacs.help Subject: Re: Help:Enable mouse wheel Date: 14 May 2003 17:57:56 +0200 Organization: I.N.R.I.A Rocquencourt Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1052930376 29748 80.91.224.249 (14 May 2003 16:39:36 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 14 May 2003 16:39:36 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Wed May 14 18:39:33 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19FzHx-0007jP-00 for ; Wed, 14 May 2003 18:39:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19Fyur-0003BY-08 for gnu-help-gnu-emacs@m.gmane.org; Wed, 14 May 2003 12:15:41 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!opentransit.net!jussieu.fr!univ-lyon1.fr!unice.fr!news.cma.fr!news-sop.inria.fr!news-rocq.inria.fr!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: wasabi.inria.fr Original-X-Trace: news-rocq.inria.fr 1052927876 7338 128.93.23.201 (14 May 2003 15:57:56 GMT) Original-X-Complaints-To: usenet@inria.fr Original-NNTP-Posting-Date: Wed, 14 May 2003 15:57:56 +0000 (UTC) X-Attribution: FF X-Url: http://www-rocq.inria.fr/~fleuret User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-Xref: shelby.stanford.edu gnu.emacs.help:113228 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:9727 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:9727 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