wheel-mouse and xemacs

KevinO plug-discuss@lists.PLUG.phoenix.az.us
Wed, 19 Sep 2001 20:27:51 -0700


"John (EBo) David" wrote:
> 
> On my 6 foot pile of things called a "to-do" List I've wanted to get my
> wheel mouse working in emacs...
> 

I don't normally run emacs but I just tried my wheel mouse and it
scrolls...

The mouse is a Logitech Optical Wheel M-BD58 using /dev/psaux (ps2 port)

----------- A snippet from XF86Config : -------------

Section "Pointer"

    Protocol    "IMPS/2"
    Device      "/dev/mouse"
    ZAxisMapping 4 5

# ChordMiddle is an option for some 3-button Logitech mice

#    ChordMiddle

EndSection
-----------------------------------------------------

----------- my ~/.Xdefaults file --------------------

! Parts (C) 1996 By Greg J. Badros <gjb@cs.duke.edu>
! You may use this file as specified under the GNU General Public
License

emacs*Background: DarkSlateGray
emacs*Foreground: Wheat
emacs*pointerColor: Orchid
emacs*cursorColor: Orchid
emacs*bitmapIcon: on
emacs*font: fixed
emacs.geometry: 80x25

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! xterm (and friends)

XTerm*saveLines:        1500
nxterm*saveLines:       1500
rxvt*saveLines:         1500

XTerm*cursorColor:      blue
XTerm*scrollBar:        true
nxterm*cursorColor:     blue
nxterm*scrollBar:       true

xterm*fullCursor:       true
xterm*reverseWrap:      true
xterm*titleBar:         false
nxterm*fullCursor:      true
nxterm*reverseWrap:     true
nxterm*titleBar:        false

*visualBell:            true
*scrollTtyOutput:       False
*scrollKey:             True
Scrollbar.JumpCursor:   True
*numeric:               C
*displayLang:           C
*basicLocale:           C
*timeFormat:            C
*inputLang:             C

*eightBitInput:                 true
remotexterm*eightBitInput:      false
nxterm*Cursor: xterm

xterm*VT100.Translations: #override\n\
        <KeyPress>Prior : scroll-back(1,page)\n\
        <KeyPress>Next : scroll-forw(1,page)
nxterm*VT100.Translations: #override\n\
        <KeyPress>Prior : scroll-back(1,page)\n\
        <KeyPress>Next : scroll-forw(1,page)
!## NETSCAPE
Netscape*drawingArea.translations:  #replace    \
        <Btn1Down>:           ArmLink()   \n\
        <Btn2Down>:           ArmLink()   \n\
        ~Shift<Btn1Up>:       ActivateLink()  \n\
        ~Shift<Btn2Up>:       ActivateLink(new-window)  \
                                        DisarmLink()    \n\
        Shift<Btn1Up>:        ActivateLink(save-only)  \
                                        DisarmLink()    \n\
        Shift<Btn2Up>:        ActivateLink(save-only)  \
                                        DisarmLink()    \n\
        <Btn1Motion>:             DisarmLinkIfMoved()  \n\
        <Btn2Motion>:             DisarmLinkIfMoved()  \n\
        <Btn3Motion>:             DisarmLinkIfMoved()  \n\
        <Motion>:             DescribeLink()  \n\
        <Btn3Down>:           xfeDoPopup()    \n\
        <Btn3Up>:             ActivatePopup() \n\
        Ctrl<Btn4Down>: PageUp()\n\
        Ctrl<Btn5Down>: PageDown()\n\
        Shift<Btn4Down>: LineUp()\n\
        Shift<Btn5Down>: LineDown()\n\
        None<Btn4Down>:
LineUp()LineUp()LineUp()LineUp()LineUp()LineUp()\n\
       
None<Btn5Down>:LineDown()LineDown()LineDown()LineDown()LineDown()LineDow
n()\n\
        Alt<Btn4Down>: xfeDoCommand(forward)\n\
        Alt<Btn5Down>: xfeDoCommand(back)\n

Netscape*globalNonTextTranslations: #override\n\
 Shift<Btn4Down>: LineUp()\n\
 Shift<Btn5Down>: LineDown()\n\
 None<Btn4Down>:LineUp()LineUp()LineUp()LineUp()LineUp()LineUp()\n\

None<Btn5Down>:LineDown()LineDown()LineDown()LineDown()LineDown()LineDown()\n\


!# NEdit
NEdit*text.Translations: #override\n\
        Shift<Btn4Down>,<Btn4Up>: scroll_up(1)\n\
        Shift<Btn5Down>,<Btn5Up>: scroll_down(1)\n\
        Ctrl<Btn4Down>,<Btn4Up>: previous_page()\n\
        Ctrl<Btn5Down>,<Btn5Up>: next_page(1)\n\
        <Btn4Down>,<Btn4Up>: scroll_up(3)\n\
        <Btn5Down>,<Btn5Up>: scroll_down(3)\n
nedit*text.foreground: yellow
nedit*text.background: black
nedit*text.cursorForeground: green
nedit*text.blinkRate: 150
-----------------------------------------------------------------------------

Hope something in here helps you out.
-- 
Kevin O'Connor

People in cars cause accidents...
Accidents in cars cause people.