emacsclient window focus

若如初见. 提交于 2019-12-01 15:18:50

How about:

emacsclient -e  "(select-frame-set-input-focus (selected-frame))"

works for me on emacs 23.1

To unfocus (lower-frame) might be useful.

Would the "--create-frame" option to emacsclient work for you? You'd get a new frame for each file you opened this way, but at least it would be focused (I think).

For some unknown reason, the issue fixed itself. Opening files now consistently changes focus to the emacs frame with the corresponding file. I'm honestly unsure what changed the behavior, but I'm happy.

Thanks to everyone for their comments and suggestions!

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