How to make emacs auto-focus to new window for all buffers and modes. Please help

  • 1
    When you say 'window' do you mean 'gui window'? In emacs parlance such a thing is called a frame, windows exist inside frames and are used to display buffers. Also, which version/platform are you using? – rpluim Nov 8 at 19:39
  • Window, I need a focus at every new created windows in the frame, And also need posibility for few exseptions. windows 10/emacs 26.1 – Valera Nov 8 at 19:47
  • Can you explain in more detail what you're trying to achieve? eg If I do 'C-x 2' I create a new window, how do you want emacs to behave? – rpluim Nov 8 at 19:49
  • I want, when i create new window, for example with speedbar or gdb (and frame spliting), or smth i dont need to press C-x o. I am already have (setq help-window-select t) but its not enough – Valera Nov 8 at 19:59
  • 3
    Possible duplicate of Automatically switch focus to new window – nega Nov 8 at 20:57

Your Answer


By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.