35

How can emacs open a new file in a new gui window? And how can it be made to open by splitting a window?

1
  • It sounds like you're asking two questions, although it's not really clear. As far as more efficiently cycling through the buffer ring, see here: stackoverflow.com/questions/7394289/…
    – Tyler
    Commented Apr 13, 2013 at 19:46

1 Answer 1

54

Emacs refers to gui windows as 'frames', and the partitions with a frame are called 'windows'.

You can open a file in a new frame with C-x 5 f. You can open a file in a different window in the same frame with C-x 4 f.

3
  • 1
    I like 'new-frame and 'other-frame to switch between frames better.
    – DavidGamba
    Commented Dec 11, 2013 at 23:53
  • 3
    In my case C-x 4 f opens the file in the other existing window in that frame. Is there a way to open the file in a new window in the same frame. So say, I have 2 windows, I want to open the file in a third window?
    – Zeynel
    Commented Dec 29, 2013 at 11:07
  • 3
    C-x 2 C-x C-f or C-x 3 C-x C-f. If the combo is too long you can save it as a macro and bind it to something shorter.
    – Tyler
    Commented Dec 30, 2013 at 14:02

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