Skip to content

Instantly share code, notes, and snippets.

@kidd
Created January 10, 2010 16:35
(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 2 pos) 2)
(+ (nth 1 pos) 1))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment