From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andrew Walrond Newsgroups: gmane.emacs.help Subject: Re: Changing startup horizontal window split behaviour Date: Wed, 03 Oct 2007 10:33:28 +0100 Message-ID: <470361E8.9090505@walrond.org> References: <470257F4.10702@walrond.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1191403864 15993 80.91.229.12 (3 Oct 2007 09:31:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 3 Oct 2007 09:31:04 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 03 11:31:01 2007 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 1Id0ZD-0005h5-FO for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Oct 2007 11:30:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Id0Z9-0002Ey-0a for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Oct 2007 05:30:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Id0Yh-0002Am-2L for help-gnu-emacs@gnu.org; Wed, 03 Oct 2007 05:30:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Id0Yf-00026i-2z for help-gnu-emacs@gnu.org; Wed, 03 Oct 2007 05:30:22 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Id0Ye-00026X-OO for help-gnu-emacs@gnu.org; Wed, 03 Oct 2007 05:30:20 -0400 Original-Received: from marvin.h-e-r-e-s-y.com ([87.106.62.5]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Id0Ye-00004t-Ch for help-gnu-emacs@gnu.org; Wed, 03 Oct 2007 05:30:20 -0400 Original-Received: from orion.h-e-r-e-s-y.com ([213.120.249.28] helo=[172.16.1.254]) by marvin.h-e-r-e-s-y.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.66) (envelope-from ) id 1Id0g4-00014g-O0 for help-gnu-emacs@gnu.org; Wed, 03 Oct 2007 09:38:01 +0000 User-Agent: Icedove 1.5.0.12 (X11/20070731) In-Reply-To: <470257F4.10702@walrond.org> X-Enigmail-Version: 0.94.2.0 X-Detected-Kernel: Linux 2.6 (newer, 1) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor 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:48067 Archived-At: Andrew Walrond wrote: > When I start emacs with more than one file specified on the command > line, the emacs display is split horizontally with a buffer-list > displayed in the top window and the first file in the bottom window. > > How can I change this behaviour, in general? Could I perhaps have a > vertical split or not display a buffer list? > The list wasn't very forthcoming, but #emacs was more forthcoming, so I thought I'd share what I learned here where web-searches might find it. First, to stop emacs from opening a buffer-list on startup, just set this variable inhibit-startup-buffer-menu to t in .emacs Second, although I haven't managed to stop the window from being split, it's possible to delete the extra window by adding this to .emacs: (add-hook 'emacs-startup-hook 'delete-other-windows) Another little gem is how to get the buffer-list (C-x C-b) and other special buffers to appear in the current-window, rather than the other-window. This is achieved by adding this to .emacs (nconc same-window-buffer-names '("*Buffer List*" "*Help*")) Andrew Walrond