Dimitar Panayotov shares experience

Everything which eases programmer’s life and satisfies the clients

Archive for December, 2006

GNU Emacs: Automatic “move away mouse cursor” when it obscures what you type

Posted by Dimitar Panayotov on 11 December 2006, 10:44

Hello,

I recently discovered how to make Emacs move mouse cursor from your typing point so that it will not make your text obscure. I tried it and it works. Imagine how you use the mouse to position the point (it is quicker sometimes) and then you start to type, and the mouse just stands on your typing point way. :) Not so much important, but it is a good “extra”.

Here is how you could do it:

customize-variable RET mouse-avoidance-mode

Then you can choose from several options. I personally like the jump one — it just moves mouse cursor in a random direction, but not far from the point. The other options are banish, exile, animate, proteus.

The other way is possible, too: put the custom value in your “.emacs” file. I prefer it:

(setq-default mouse-avoidance-mode jump)

The explanations are here (I guess they can be found on many, many other places, too):

http://www.gnu.org/software/emacs/manual/html_node/Mouse-Avoidance.html

Do not make war; why should you? Kill all your enemies and be a dictator!

Posted in emacs, gnu | No Comments »