From: "Chris F.A. Johnson" <cfajohnson@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Mouse Scroll.
Date: Sat, 31 Mar 2007 14:40:56 -0400 [thread overview]
Message-ID: <oim2e4-c42.ln1@xword.teksavvy.com> (raw)
In-Reply-To: 1175129879.195404.156070@r56g2000hsd.googlegroups.com
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)
next prev parent reply other threads:[~2007-03-31 18:40 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-29 0:57 Mouse Scroll Daniel
2007-03-29 18:48 ` Robert Thorpe
2007-03-30 2:42 ` Daniel
2007-03-30 14:17 ` jmg3000
2007-04-02 9:55 ` Robert Thorpe
2007-03-30 7:00 ` Thien-Thi Nguyen
2007-04-01 16:20 ` Daniel
2007-03-31 18:40 ` Chris F.A. Johnson [this message]
2007-04-01 16:25 ` Daniel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=oim2e4-c42.ln1@xword.teksavvy.com \
--to=cfajohnson@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).