LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-21-2010, 08:49 AM   #1
cola
Senior Member
 
Registered: Sep 2007
Location: Dhaka,Bangladesh
Distribution: Debian
Posts: 1,031

Rep: Reputation: 63
How to open multiple files with spliting window in Emacs?


What's the command to open multiple files in Emacs vertically/horizontally splitting window.
 
Old 04-21-2010, 09:04 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389
Hi,

Is this what you are looking for:

GNU Emacs - Multiple Windows

Hope this helps.
 
Old 04-21-2010, 09:11 AM   #3
cola
Senior Member
 
Registered: Sep 2007
Location: Dhaka,Bangladesh
Distribution: Debian
Posts: 1,031

Original Poster
Rep: Reputation: 63
There are 2 files in /home/user.Now i want to open both files with emacs splitting window,like emacs ----split-option file1 file2.
How to do this?
 
Old 04-21-2010, 11:25 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389
Hi,

emacs -nw file2 file2 should open both files in a horizontally split window. I don't know how to do this vertically.

Hope this helps.
 
Old 04-22-2010, 12:13 AM   #5
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,680
Blog Entries: 29

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
press Ctrl-x-3 {Spliting window vertically}
press Ctrl-x-2 {Spliting window horizontally}
press Ctrl-x-1 {Closing other splits}

press Ctrl-x-o {Moving the cursor from one split to another}

press Ctrl-x-Ctrl-f {Opening a file}

Last edited by TheIndependentAquarius; 04-23-2010 at 05:51 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to open Emacs in maximized window? cola Linux - Newbie 4 10-19-2010 08:46 PM
emacs and multiple files open in seperate windows from remote systems poundjd Linux - Newbie 3 03-27-2010 12:24 AM
Emacs: Open two files in horizontal windows from command line jhwilliams Linux - Software 4 02-06-2009 12:32 AM
Spliting files th3gh05t Linux - Newbie 11 09-15-2006 04:46 AM
running emacs in su mode wont open x window true_atlantis Linux - Software 2 05-05-2004 12:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration