summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2018-04-21 11:38:46 -0700
committerSean Whitton <spwhitton@spwhitton.name>2018-04-21 11:38:46 -0700
commit820c4dd3705d55c8d5d35f7213441228cc142a83 (patch)
treea8b2d509e7c0a55393ec79a35ddcaeb2e09ab45a
parentfe2b3fc643032ac3308172ec48eb44519e40878b (diff)
downloaddotfiles-820c4dd3705d55c8d5d35f7213441228cc142a83.tar.gz
stop Emacs window focus following the mouse
-rw-r--r--.emacs.d/init.el10
1 files changed, 8 insertions, 2 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index c6f6bcef..0f06aada 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -124,8 +124,14 @@
;;; misc display and interface settings
;; focus follow mouse
-(setq mouse-autoselect-window t
- focus-follows-mouse t)
+(setq
+ ;; this is more trouble than it is worth because when the window
+ ;; layout changes the existing position of the mouse can cause a
+ ;; surprise focus change
+ mouse-autoselect-window nil
+
+ ;; tell Emacs what my window manager does
+ focus-follows-mouse t)
;; note that this works only for self-insert chars, not other
;; bindings, and it comes back after switching away from Emacs. But