unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Mouse Scroll.
@ 2007-03-29  0:57 Daniel
  2007-03-29 18:48 ` Robert Thorpe
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Daniel @ 2007-03-29  0:57 UTC (permalink / raw)
  To: help-gnu-emacs

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2007-04-02  9:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2007-04-01 16:25   ` Daniel

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