Article View: gnu.emacs.help
Article #189632Re: redefining mouse buttons in .emacs?
From: Olivier Levillain
Date: Wed, 19 Dec 1990 09:56
Date: Wed, 19 Dec 1990 09:56
20 lines
1632 bytes
1632 bytes
In article <9012071400.AA00555@kbs.isei.jrc.it>, c_duursma@cen.jrc.it
(Cuno M. Duursma) writes:
|>I try to redefine a mouse key with:
|>
|>(define-key mouse-map x-button-s-left 'x-mouse-set-mark)
|>
|>This works fine, but when I put this in my .emacs it gives an error.
|>However, if I start emacs -q and load .emacs afterwards it loads
|>correctly. What happens in initialization that makes it behave
|>differently from loading files normally ?
I think the mouse-map is defined after your .emacs is loaded (see startup.el)
You should put your (define-key mouse-map ...) in a defun and call emacs
with option -q <your defun>.
-------- Olivier LEVILLAIN --- Bull S.A. --------------------------------
BSS7-LANG-LSLI e-mail: Olivier.Levillain@cl.bull.fr
Rue Jean-Jaures, F6/1D/10, BP 53 tel: (33-1) 34-80-65-52
78340 Les Clayes-sous-Bois, France Fax: (33-1) 34-80-79-50
-------------------------------------------------------------------------
Technical Details
Message-ID:
<431@clbull.cl.bull.fr>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!i2unix!inria!bull.bull.fr!clbull.cl.bull.fr!agate-one!levillaReferences:
<9012071400.AA00555@kbs.isei.jrc.it>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103b8b,d2dd289ad27f4021 X-Google-Attributes: gid103b8b,public X-Google-ArrivalTime: 1990-12-19 01:56:05 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!i2unix!inria!bull.bull.fr!clbull.cl.bull.fr!agate-one!levilla From: levilla@cl.bull.fr (Olivier Levillain) Newsgroups: gnu.emacs.help Subject: Re: redefining mouse buttons in .emacs? Message-ID: <431@clbull.cl.bull.fr> Date: 19 Dec 90 09:56:05 GMT References: <9012071400.AA00555@kbs.isei.jrc.it> Sender: news@clbull.cl.bull.fr Reply-To: levilla@cl.bull.fr (Olivier Levillain) Organization: Bull, Les Clayes, France Lines: 20