From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Chris F.A. Johnson" Newsgroups: gmane.emacs.help Subject: Re: Mouse Scroll. Date: Sat, 31 Mar 2007 14:40:56 -0400 Message-ID: References: <1175129879.195404.156070@r56g2000hsd.googlegroups.com> Reply-To: cfajohnson@gmail.com NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1175369857 20740 80.91.229.12 (31 Mar 2007 19:37:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 31 Mar 2007 19:37:37 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 31 21:37:35 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 1HXjOI-00057j-TA for geh-help-gnu-emacs@m.gmane.org; Sat, 31 Mar 2007 21:37:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HXjR8-0002B3-HW for geh-help-gnu-emacs@m.gmane.org; Sat, 31 Mar 2007 14:40:30 -0500 Original-Path: shelby.stanford.edu!newshub.stanford.edu!postnews.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.teksavvy.com!news.teksavvy.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Sat, 31 Mar 2007 13:43:03 -0500 Original-Newsgroups: gnu.emacs.help User-Agent: slrn/0.9.8.1 (Linux) Original-Lines: 39 Original-NNTP-Posting-Host: 206.248.139.163 Original-X-Trace: sv3-mS3mcmuIDtz3+oAG7hbXb8NKza12eVkyWSAY0nqgONabYlRiWGjaaXqpgMV5CjgmfmBmFMwgpGVulz6!qi2rqQQ5Q4nTbsoRGokd7y5Sz5zx2qI6xpQBE7GgfmLCaQoGXsceXhqIqhHjRV3BQk4TFCnwAadI!GQ== Original-X-Complaints-To: abuse@teksavvy.com X-DMCA-Complaints-To: abuse@teksavvy.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.34 Original-Xref: shelby.stanford.edu gnu.emacs.help:146722 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:42326 Archived-At: 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)