[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Mouse Scroll.
From: |
Daniel |
Subject: |
Re: Mouse Scroll. |
Date: |
1 Apr 2007 09:25:39 -0700 |
User-agent: |
G2/1.0 |
On Mar 31, 11:40 am, "Chris F.A. Johnson" <cfajohn...@gmail.com>
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 <http://cfaj.freeshell.org>
> ========= 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.