From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Giorgos Keramidas Newsgroups: gmane.emacs.help Subject: Re: opening two documents side-by-side Date: Sun, 17 Aug 2008 04:26:05 +0300 Organization: SunSITE.dk - Supporting Open source Message-ID: <87iqu0ctzm.fsf@kobe.laptop> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1218937242 19411 80.91.229.12 (17 Aug 2008 01:40:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 17 Aug 2008 01:40:42 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Aug 17 03:41:35 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KUXGw-0005p7-Sl for geh-help-gnu-emacs@m.gmane.org; Sun, 17 Aug 2008 03:41:35 +0200 Original-Received: from localhost ([127.0.0.1]:44848 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KUXG0-0004qq-4X for geh-help-gnu-emacs@m.gmane.org; Sat, 16 Aug 2008 21:40:36 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!newsfeed.straub-nv.de!feeder.erje.net!news-fra1.dfn.de!news.tele.dk!feed118.news.tele.dk!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) Cancel-Lock: sha1:vjyZTHF5L80c24qxipvrOpTjWoU= Original-Lines: 35 Original-NNTP-Posting-Host: 77.49.138.42 Original-X-Trace: news.sunsite.dk DXC=L^Mj7bH?lJH1Tkj<1icaTP727a List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:56730 Archived-At: On Sat, 16 Aug 2008 12:51:03 -0700, "Rich E" wrote: > Hi, > When I open documents with, for example: > > emacs doc1.txt doc2.txt > > they will open one above the other. Is there any way two tell emacs > to open them side by side instead? Yes, there are a few ways: * Use an Emacs window that is ``wide enough''. GNU Emacs 23.X decides if a frame should be split vertically by comparing the current frame width with `split-width-threshold'. When the current frame width exceeds `split-width-threshold' Emacs splits the frame in two vertical windows. You can try this, for example, by running Emacs (in a terminal that is at least 40 columns wide) like this: % emacs --eval '(setq-default split-width-threshold 40)' \ doc1.txt doc2.txt If your terminal is at least 40 columns wide, Emacs should split the initial frame in two vertical windows. * Customize `split-width-threshold' by typing `M-x customize-variable RET split-width-threshold RET', set its value to a smaller width than the default (set to 160 columns here), save the customization for future sessions and you are done. Now Emacs should split the frame vertically without the --eval trick shown above. * Fire up Emacs, set up the windows yourself, and *then* visit the two files in the windows you have pre-configured.