unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Daniel" <hanmoai@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Mouse Scroll.
Date: 28 Mar 2007 17:57:59 -0700	[thread overview]
Message-ID: <1175129879.195404.156070@r56g2000hsd.googlegroups.com> (raw)

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.)

             reply	other threads:[~2007-03-29  0:57 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-29  0:57 Daniel [this message]
2007-03-29 18:48 ` Mouse Scroll 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
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=1175129879.195404.156070@r56g2000hsd.googlegroups.com \
    --to=hanmoai@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).