help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to disable mouse click on modeline?


From: Eli Zaretskii
Subject: Re: How to disable mouse click on modeline?
Date: Sun, 12 Jun 2011 06:01:09 +0300

> From: "Yue Wu" <vanopen@gmail.com>
> Date: Sun, 12 Jun 2011 10:05:48 +0800
> 
> >   (global-set-key [mode-line mouse-1] 'ignore)
> >   (global-set-key [mode-line mouse-2] 'ignore)
> >   (global-set-key [mode-line mouse-3] 'ignore)
> >
> > You will still have problems with parts of the mode line that define
> > their own bindings, though.  If you want to disable those as well, you
> > will have to redefine mode-line-format without the mouse bindings.
> >
> >
> 
> Thanks for pointing out the way, it works mostly, but click on the buffer  
> name/infos on the modeline still has effects, maybe I have to redefine the  
> modeline for it, though I don't know elisp at all, an example will be  
> appreciated :)

The default definition of mode-line-format is in bindings.el, so I
think you will find there all the examples you need.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]