From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Daniel" Newsgroups: gmane.emacs.help Subject: Re: Mouse Scroll. Date: 1 Apr 2007 09:25:39 -0700 Organization: http://groups.google.com Message-ID: <1175444739.356015.291050@b75g2000hsg.googlegroups.com> References: <1175129879.195404.156070@r56g2000hsd.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1175445480 20671 80.91.229.12 (1 Apr 2007 16:38:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 1 Apr 2007 16:38:00 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Apr 01 18:37:58 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HY341-0006Y1-AH for geh-help-gnu-emacs@m.gmane.org; Sun, 01 Apr 2007 18:37:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HY36x-0004Ar-59 for geh-help-gnu-emacs@m.gmane.org; Sun, 01 Apr 2007 12:40:59 -0400 Original-Path: shelby.stanford.edu!newshub.stanford.edu!postnews.google.com!b75g2000hsg.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 47 Original-NNTP-Posting-Host: 24.161.168.138 Original-X-Trace: posting.google.com 1175444741 4844 127.0.0.1 (1 Apr 2007 16:25:41 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 1 Apr 2007 16:25:41 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20060601 Firefox/2.0.0.3 (Ubuntu-edgy),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: b75g2000hsg.googlegroups.com; posting-host=24.161.168.138; posting-account=sSuG_Q0AAACBMwnT3Ej4aAinBHQ74NmN Original-Xref: shelby.stanford.edu gnu.emacs.help:146737 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:42341 Archived-At: On Mar 31, 11:40 am, "Chris F.A. Johnson" wrote: > On 2007-03-29, Daniel wrote: > > Hi All, > > > I want to scroll just one line when I spin the mouse wheel. I know I > > can do it with SHIFT key, but it is tedious to hold SHIFT every time. > > > I have found mwheel.el, and modified like this: > > > (defcustom mouse-wheel-scroll-amount '(1 ((shift) . 5) ((control) . > > nil)) > > I use this; just change two/2 to one/1: > > (defun down-two () > (interactive) > (scroll-down 2) > ) > > (defun up-two () > (interactive) > (scroll-up 2) > ) > > (global-set-key [(mouse-4)] 'down-two) > (global-set-key [(mouse-5)] 'up-two) > (global-set-key [(mouse-6)] 'down-two) > (global-set-key [(mouse-7)] 'up-two) > > ... > > > (BTW, why emacs is so hard to use? It is very less intuitive to use.) > > It is not hard to use. > > -- > Chris F.A. Johnson > ========= Do not reply to the From: address; use Reply-To: ======== > Author: > Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress) Thanks, Johnson, But, in my case, it seems that my global-key for mouse wheel is prior to the .emacs. That was weird, but now I think I solved. Thanks.