Sometimes I have multiple open frames (not only windows) in Spacemacs, and would like to collapse all frames into one single frame. That's easier to keep track on open buffers.

However, I cant' find a way to collapse all frames into one. I'm aware that I can kill open frames, but that's not what I want.

  1. Question:

How can I collapse all open frames into one single frame in Spacemacs (or Emacs)?

EDIT: To clarify, what I want, please consider the following images.

What I have:

enter image description here

Multiple Windows appear in multiple frames.

What I WANT:

enter image description here

I would like to collect all windows within one frame. That is, whereas before the $n$ windows were spread across $k$ frames, now I want to have the $n$ windows within one frame.

Of course, I could delete all other frames, and then reopen the windows in my main, single, remaining frame. But I do not reopen all the windows again. Rather, I'm looking for a key binding that changes from "what I have" to "what I want"

(2nd question deleted as asked by Editor)

  • Please do not x-post: stackoverflow.com/q/58833125/2708138 – Tobias Nov 14 '19 at 14:24
  • 1
    Please clarify what you mean by "collapse" and how that's different from what delete-other-frames (bound to C-x 5 1 by default) does. – Stefan Nov 14 '19 at 14:41
  • @Stefan The OP does not mention delete-other-frames in his question and delete-other-frames is not in the file-menu by default. So I assume that the OP just not knew about delete-other-frames and I informed him for that reason in my answer about it. – Tobias Nov 14 '19 at 16:05
  • The question is unclear, and so risks being deleted. Please specify what you mean by "collapsing" multiple frames into one frame. – Drew Nov 14 '19 at 20:39
  • Also, regarding the last pargraph: plase make it a separate question. @Tobias indeed it's not clear whether he knows about delete-other-frames (his mention of "I can kill other frames" suggests that maybe he does), that's part of the problem. – Stefan Nov 14 '19 at 23:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.