From: Andy Stewart <lazycat.manatee@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Any easy way to disable mouse behavior that can change to other buffers?
Date: Thu, 13 Nov 2008 16:44:37 +0800 [thread overview]
Message-ID: <874p2cxbey.fsf@manatee.domain> (raw)
In-Reply-To: 87prl0qcu3.fsf@sina.com
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.
next prev parent reply other threads:[~2008-11-13 8:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-13 7:55 Any easy way to disable mouse behavior that can change to other buffers? anhnmncb
2008-11-13 8:44 ` Andy Stewart [this message]
2008-11-13 14:58 ` anhnmncb
2008-11-14 0:27 ` Andy Stewart
2008-11-14 13:46 ` Kevin Rodgers
2008-11-15 1:23 ` anhnmncb
-- strict thread matches above, loose matches on Subject: below --
2008-11-14 14:01 martin rudalics
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874p2cxbey.fsf@manatee.domain \
--to=lazycat.manatee@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).