17.G: Help | 17: Emacs | 17.E: Mode Lines |
To create a second window, enter
C-x 2
The number 2 means create two windows (4 windows is the maximum). To go back to one window, enter
C-x 1
The second window you just opened is actually a copy of your first window.
To pull up a different file in a window
If you can't use your mouse with emacs, use the "other" window command C-x o to switch windows. Each window has it's own cursor position, but only one, the active window, actually shows the cursor on the screen.
Editing commands apply to the active window only. Closing a window does not save it or kill it; it is still there in the buffer waiting for you to act on it. So again, if you want to save your edits, make sure to save the buffer contents before killing the buffer.
The kill ring is common to all buffers. So killing and yanking text from one window to another is the same procedure described before, only now you need to activate the appropriate window.
Another useful command to remember when copying between files is
C-M-v scroll the inactive window
With this command you can keep the cursor in the window where you are editing, while advancing through the other window you are reading.
Now that we know to use the most useful option in emacs, let's got to what just might be the most helful section, Getting Help in emacs.
17.G: Help | 17: Emacs | 17.E: Mode Lines |