This repository has been archived by the owner on Mar 3, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
EMACS
110 lines (89 loc) · 3.88 KB
/
EMACS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
From - Sat Dec 19 00:50:58 1998
Received: from mail.iol.ie (mail2.mail.iol.ie [194.125.2.193])
by solaris1.mysolution.com (8.8.5/8.8.5) with ESMTP id UAA19253
for <[email protected]>; Sat, 21 Nov 1998 20:29:45 -0500 (EST)
Received: from sto-kerrig.ie (dialup-003.clonmel.iol.ie [194.125.43.195]) by mail.iol.ie
Sendmail (v8.9.1) with ESMTP id BAA26997 for <[email protected]>;
Sun, 22 Nov 1998 01:35:28 GMT
Received: from sto-kerrig.ie (IDENT:[email protected] [127.0.0.1])
by sto-kerrig.ie (8.9.1/8.9.1) with ESMTP id VAA04923
for <[email protected]>; Sat, 21 Nov 1998 21:14:36 GMT
Message-Id: <[email protected]>
Date: Sat, 21 Nov 1998 21:14:33 +0000
Content-Type: text
Status: OR
X-Mozilla-Status: 8001
X-Mozilla-Status2: 00000000
X-UIDL: 18c7143e5bfe082df1a908f7bd6ccdcb
From: Paul J Collins <[email protected]>
Subject: emacs imwheel settings
I've been messing with imwheel with a Logitech Mouseman Wheel, and
I've finally gotten nice smooth scrolling with Emacs.
Add the following to your .emacs:
;;; For imwheel
(setq imwheel-scroll-interval 3)
(defun imwheel-scroll-down-some-lines ()
(interactive)
(scroll-down imwheel-scroll-interval))
(defun imwheel-scroll-up-some-lines ()
(interactive)
(scroll-up imwheel-scroll-interval))
(global-set-key [?\M-\C-\)] 'imwheel-scroll-up-some-lines)
(global-set-key [?\M-\C-\(] 'imwheel-scroll-down-some-lines)
;;; end imwheel section
Add the following to your ~/.imwheelrc:
"emacs"
Shift_L, Up, Page_Up
Shift_L, Down, Page_Down
None, Down, Control_L|Alt_L|Shift_L|parenright
None, Up, Control_L|Alt_L|Shift_L|parenleft
Leaving out the Shift_L part makes emacs think you've typed C-M-9 and
C-M-0. Holding down left shift (you can add right if you like) will
scroll by pages, and with no modifiers, scrolling is by
imwheel-scroll-interval lines. For modes such as mail summary
buffers, it is easy to bind C-M-( and C-M-) to next-message, or
whatever.
Cheers
----------------p!
--
Paul Collins <[email protected]> Public Key On Keyserver.
INGREDIENTS: AQUA, ALUMINIUM ZIRCONIUM TETRACHLOROHYDREX GLY, ALCOHOL
DENAT, DIMETHICONE, PROPYLENE GLYCOL, CYCLOMETHICONE, DIMETHICONE
COPOLYOL, PARFUM.
--------------------------------------------------------------------------------
From - Tue Mar 30 02:19:44 1999
Received: from pi.novedia.de (nit.cs.tu-berlin.de [130.149.16.233])
by solaris1.mysolution.com (8.8.5/8.8.5) with ESMTP id KAA08475
for <[email protected]>; Mon, 29 Mar 1999 10:58:59 -0500 (EST)
Received: (from fm@localhost)
by pi.novedia.de (8.8.8/8.8.8) id SAA20776;
Mon, 29 Mar 1999 18:05:57 +0200
From: Frank Meissner <[email protected]>
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Date: Mon, 29 Mar 1999 18:05:57 +0200 (CEST)
To: Paul J Collins <[email protected]>, [email protected]
Subject: XEmacs-Keybinding-Syntax in EMACS, imwheel-package
X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii
X-Mozilla-Status: 8001
X-Mozilla-Status2: 00000000
X-UIDL: 4a6ee4a74675e43bc0f9ec33957bc78d
Hi,
just a small addition to the EMACS-File, because for someone it may be
hard to get the keybindings right (I had to try two times and got one
help request from a co-worker)
The correct syntax for keybinding in xemacs is the following:
(define-key global-map [(control \))] 'imwheel-scroll-up-some-lines)
(define-key global-map [(control \()] 'imwheel-scroll-down-some-lines)
Perhaps you could add this to the EMACS-File.
Anything else goes really well, even Quake accepts the
wheel. Allthough I did'nt get the killer-keybinding or -alias, perhaps
you have a hint? Anyway, thanks for the great package and greetings
from berlin.
Frank
--
SIGTHTBABW: a signal sent from Unix to its programmers at random
intervals to make them remember that There Has To Be A Better Way.