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

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

Re: Any easy way to disable mouse behavior that can change to other buff


From: Andy Stewart
Subject: Re: Any easy way to disable mouse behavior that can change to other buffers?
Date: Thu, 13 Nov 2008 16:44:37 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Hi, 

I have a easy way that perhaps can help you.
I configuration below in ~/.emacs

(mouse-avoidance-mode "banish")

to make mouse banish when do any action in Emacs.

But I don't like mouse banish to right-top corner of Frame, because that
will make mouse above Tabbar.
So I rewrite function `mouse-avoidance-banish-destination' to make mouse
banish right-bottom corner of Frame.

(defun mouse-avoidance-banish-destination ()
  "The position to which Mouse-Avoidance mode `banish' moves the mouse.
You can redefine this if you want the mouse banished to a different corner."
  (let* ((pos (window-edges)))
    (cons (+ (nth 1 pos) (frame-width) 50)
          (+ (nth 1 pos) (frame-height) 50)))) ;make mouse hide in bottom of 
frame


Enjoy!

  -- Andy.

anhnmncb <anhnmncb@sina.com> writes:

> Mouse when on modeline, and popup buffers menu by C-<left mouse> can be
> used to change to other buffers, both of which are not what I want, can
> I disable it?
>
> Thank you.





reply via email to

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