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

我怕爱的太早我们不能终老 提交于 2020-01-01 02:05:48

问题


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?


回答1:


Set:

(setq mouse-autoselect-window t)



回答2:


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

(windmove-default-keybindings)


来源:https://stackoverflow.com/questions/898401/how-to-get-focus-follows-mouse-over-buffers-in-emacs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!