help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: definitely a newbie question


From: Todd Kokoszka
Subject: Re: definitely a newbie question
Date: Sun, 22 Sep 2002 20:18:45 +0200
User-agent: Mutt/1.2.5.1i

On Sun 22 Sep 2002 at 15:05:27 -0400, Robert P. J. Day wrote:
> 
>   just started with emacs, and it's not clear how, if i have
> more than one window up already, how, in one operation, i can
> open a new file in a *new* additional window.
> 
>   if i have just one window up, then "C-x 4 f <filename>"
> (find-file-other-window) will split the screen horizontally
> and open that second file.
> 
>   however, if i try this on a third file, it will just replace
> the contents of the other window, rather than splitting the
> screen into three windows, which is what i want.
> 

Emacs uses a buffer for each file. If you have one window open and want to
open another file, you can just C-x C-f and it will replace the active
buffer with the buffer of the file you found. If you type C-x b, you can
switch to a different buffer. It defaults to the most recent buffer. 

If you want to look at both files at once, you can type C-x 2 which will
split the window in 2 and this can display one buffer in each. C-x o will
allow you to switch between these two buffers. 

You should use C-h i to get to the info reader in Emacs and choose the
Emacs section. Look at the section Major Structures of Emacs, including
Files, Windows and Buffers. 

Todd

>   is there a way to do this easily?  or should i first split
> one of the existing windows, then switch to an alternate file
> in one of those windows?
> 
> rday
> 
> 
> 
> _______________________________________________
> Help-gnu-emacs mailing list
> Help-gnu-emacs@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-gnu-emacs
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]