how to get focus-follows-mouse over buffers in ema

2019-03-25 00:38发布

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?

2条回答
戒情不戒烟
2楼-- · 2019-03-25 00:57

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

(windmove-default-keybindings)
查看更多
放我归山
3楼-- · 2019-03-25 00:59

Set:

(setq mouse-autoselect-window t)
查看更多
登录 后发表回答