34

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

nbro
  • 15,395
  • 32
  • 113
  • 196
user108754
  • 597
  • 1
  • 4
  • 13
  • 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: http://stackoverflow.com/questions/7394289/how-can-i-more-easily-switch-between-buffers-in-emacs – Tyler Apr 13 '13 at 19:46

1 Answers1

52

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.

Tyler
  • 9,872
  • 2
  • 33
  • 57
  • 1
    I like `'new-frame` and `'other-frame` to switch between frames better. – DavidGamba Dec 11 '13 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 Dec 29 '13 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 Dec 30 '13 at 14:02