numerodix
numerodix

Reputation: 896

how to get focus-follows-mouse over buffers in emacs?

Suppose I have a source file open and I launch a shell. I can hit C-x o to switch between the two buffers. But how can I get it so that when I move the mouse the buffer under the mouse gets focus, just like the "focus follows mouse" option common in window managers?

Upvotes: 13

Views: 3203

Answers (2)

Reputation:

Answering the shift+arrow comment, do in your .emacs:

(windmove-default-keybindings)

Upvotes: 3

numerodix
numerodix

Reputation: 896

Set:

(setq mouse-autoselect-window t)

Upvotes: 20

Related Questions