From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.help Subject: Re: Change the default behaviour when 2 files are open Date: Fri, 07 Mar 2008 10:57:43 +0100 Message-ID: <87bq5qsvoo.fsf@thievol.homelinux.org> References: <38b2ab8a0803060643l3e4ed90n3a9fa688187778d9@mail.gmail.com> <89FD5AC2-8AC1-4646-A20F-1347584257F4@Web.DE> <38b2ab8a0803061304n5ad2074cvc5103f349b691dcd@mail.gmail.com> <18384.25918.2128.237860@kahikatea.snap.net.nz> <38b2ab8a0803070017icb66a9av38eb78c95c4a3d1d@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1204883167 18783 80.91.229.12 (7 Mar 2008 09:46:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Mar 2008 09:46:07 +0000 (UTC) Cc: gnu-emacs-help@gnu.org To: "Francis Moreau" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 07 10:46:33 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 1JXZ9j-0006IR-NR for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Mar 2008 10:46:24 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JXZ9C-000800-3J for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Mar 2008 04:45:50 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JXZ8l-0007yT-Sx for help-gnu-emacs@gnu.org; Fri, 07 Mar 2008 04:45:24 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JXZ8j-0007vt-IS for help-gnu-emacs@gnu.org; Fri, 07 Mar 2008 04:45:22 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JXZ8j-0007vh-Ab for help-gnu-emacs@gnu.org; Fri, 07 Mar 2008 04:45:21 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JXZ8j-0005n6-6W for help-gnu-emacs@gnu.org; Fri, 07 Mar 2008 04:45:21 -0500 Original-Received: from mx10.gnu.org ([199.232.76.166]) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JXZ8i-0003iX-Hf for gnu-emacs-help@gnu.org; Fri, 07 Mar 2008 04:45:20 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JXZ8f-0005lF-Jy for gnu-emacs-help@gnu.org; Fri, 07 Mar 2008 04:45:20 -0500 Original-Received: from ug-out-1314.google.com ([66.249.92.169]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JXZ8f-0005kF-8g for gnu-emacs-help@gnu.org; Fri, 07 Mar 2008 04:45:17 -0500 Original-Received: by ug-out-1314.google.com with SMTP id a2so4168885ugf.48 for ; Fri, 07 Mar 2008 01:45:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references:date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=J3RgGNWn/QtZuWnkw2DtG5lhKuwMsQoQUFLd7EAFWeA=; b=x0QCIiFqVgjxphMyoGkC/KPEtBReEv2IiODdjAvG/6tHYzRNACSWI8Bja0YpOwyBtmAwp8J7HS2eNf/OQ0IRYjbywucaE3ekZGa1nTW8rfRAOCIEMZqwbuX//0VhbOrylzYgHwPMPm47ppMtBlGcFcLhYUnRRbk/aH2WelG/Fek= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id:user-agent:mime-version:content-type; b=ptLT6TT3ikzkkjv765a3kmlOem4DK9HImjqrVozo19rWychHYfmOqhme/6yBuY0yiuqolPX4RHaZntBTYKaJsB2ctVdBCDih8DSTFIYB8MAXnsHrfDVd9KSC8KzLB2Ll2Q8ousbPoVXJRsvML5nI3DrovN3PH+kH+HWucPSXTVc= Original-Received: by 10.86.9.8 with SMTP id 8mr1191399fgi.70.1204883115603; Fri, 07 Mar 2008 01:45:15 -0800 (PST) Original-Received: from thievol.homelinux.org ( [77.197.77.36]) by mx.google.com with ESMTPS id d6sm3938837fga.9.2008.03.07.01.45.14 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 07 Mar 2008 01:45:15 -0800 (PST) In-Reply-To: <38b2ab8a0803070017icb66a9av38eb78c95c4a3d1d@mail.gmail.com> (Francis Moreau's message of "Fri, 7 Mar 2008 09:17:45 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:52121 Archived-At: "Francis Moreau" writes: > On Thu, Mar 6, 2008 at 10:42 PM, Nick Roberts wrote: >> Francis Moreau writes: >> > On Thu, Mar 6, 2008 at 8:24 PM, Peter Dyballa wrote: >> > > If you can't find anything in the Emacs info node, then send a bug >> > > report (from Help menu) in which you ask to add customisation to set >> > > a preference for vertical or horizontal splitting. >> > > >> > >> > I couldn't have found anything revelant. >> > >> > I'll send a bug report if nothing interesting can come up from this thread. >> >> Bastien has already answered your question: >> >> >> M-x customize-variable RET split-window-preferred-function RET >> >> and select the value "horizontally". > > Ah yes but I tried it and it fails because I'm using emacs 22.1 and > I'm not able to upgrade emacs on this machine. > >> >> I don't know where the docstring he quoted is from because this option seems to >> only be in Emacs 23.0.60 in the CVS repository and will not be part of the next >> release (22.2). >> > > So I guess there's no way to do so in my case. > > thanks You can, alternatively, write in your .emacs something like: --8<---------------cut here---------------start------------->8--- (find-file file1) (split-window-horizontally) (find-file-other-window file2) --8<---------------cut here---------------end--------------->8--- and you can save this config with: (window-configuration-to-register 119 nil) ;;119 == w But you can choose something else: save your config with C-x r w ==> choose a letter ==> RET Then hit C-x esc esc and copy the line in minibuffer in your .emacs -- A + Thierry Pub key: http://pgp.mit.edu