In my .emacs file I have (split-window-right). This has been working fine so far, but now I'm finding it would be easier if my workspace looked like: a square split into quads, with the two left quads joined to a column

where each box is a separate window. So really I just need to split the right window in half after the initial split on startup. How can I do this?


1 Answer 1


you can:

  • add this to your .emacs file
(other-window 1)
(other-window -1)
  • set it up manually any time: C-x 3 C-x o C-x 2 C-- C-x o
  • consider using one of those window manager extensions, like edwina, if your requeriments become more complex.

Any option you choose taking a look to C-h i m emacs [RET] m windows will be useful.

  • Hello, when I add this to my codes it gives me an error saying "Wrong number of arguments". I see the second other-window took an argument. Does the first other-window need an argument? May 12, 2020 at 17:12
  • yes, a positive 1. My fault, sorry. Already corrected.
    – Muihlinn
    May 12, 2020 at 18:01
  • Hmmm... when I did that now I get this error: Window #<window 7 on *scratch*> too small for splitting. The big vertical split happens, but the smaller horizontal split doesn't go through. Also, when I open a file, it opens the file on the right instead of the left. Any ideas? May 12, 2020 at 19:24
  • it should be a very small window, or you have a couple of windows in that frame which seems the case given the window number. For simplicity I've put only the simplest code needed to make the desired split and assumed that there is only a window. You could add (delete-other-windows) as first line. As it is, if it fails to complete the third command, whatever you make will happen in the active window.
    – Muihlinn
    May 12, 2020 at 19:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.