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: Sat, 11 Jun 2011 11:07:12 +0300

> From: "Yue Wu" <address@hidden>
> Date: Sat, 11 Jun 2011 13:22:31 +0800
> 
> I want to disable mouse left/middle/right click behaviors on the
> modeline, how to do it?

Does the below help?

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



reply via email to

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