From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Daniel" Newsgroups: gmane.emacs.help Subject: Mouse Scroll. Date: 28 Mar 2007 17:57:59 -0700 Organization: http://groups.google.com Message-ID: <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 1175132407 23398 80.91.229.12 (29 Mar 2007 01:40:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 29 Mar 2007 01:40:07 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 29 03:40:01 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 1HWjcP-0003xK-48 for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Mar 2007 03:40:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HWjev-0003uL-Jf for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Mar 2007 20:42:37 -0500 Original-Path: shelby.stanford.edu!newshub.stanford.edu!postnews.google.com!r56g2000hsd.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 37 Original-NNTP-Posting-Host: 74.62.17.156 Original-X-Trace: posting.google.com 1175129880 14196 127.0.0.1 (29 Mar 2007 00:58:00 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 29 Mar 2007 00:58:00 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: r56g2000hsd.googlegroups.com; posting-host=74.62.17.156; posting-account=sSuG_Q0AAACBMwnT3Ej4aAinBHQ74NmN Original-Xref: shelby.stanford.edu gnu.emacs.help:146657 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:42262 Archived-At: 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)) Also, I byte-compile-file mwheel.el, but it does not seem to work. In addition, I added this in ~/.emacs ;; Scroll (defun up-slightly () (interactive) (scroll-up 5)) (defun down-slightly () (interactive) (scroll-down 5)) (global-set-key [S-mouse-4] 'down-slightly) (global-set-key [S-mouse-5] 'up-slightly) (defun up-one () (interactive) (scroll-up 1)) (defun down-one () (interactive) (scroll-down 1)) (global-set-key [mouse-4] 'down-one) (global-set-key [mouse-5] 'up-one) (defun up-a-lot () (interactive) (scroll-up)) (defun down-a-lot () (interactive) (scroll-down)) (global-set-key [C-mouse-4] 'down-a-lot) (global-set-key [C-mouse-5] 'up-a-lot) But, it does not work also. What I want is just to scroll only one line when I spin the wheel. How can I do this? (BTW, why emacs is so hard to use? It is very less intuitive to use.)