unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
To: "Francis Moreau" <francis.moro@gmail.com>
Cc: gnu-emacs-help@gnu.org
Subject: Re: Change the default behaviour when 2 files are open
Date: Fri, 07 Mar 2008 10:57:43 +0100	[thread overview]
Message-ID: <87bq5qsvoo.fsf@thievol.homelinux.org> (raw)
In-Reply-To: <38b2ab8a0803070017icb66a9av38eb78c95c4a3d1d@mail.gmail.com> (Francis Moreau's message of "Fri, 7 Mar 2008 09:17:45 +0100")

"Francis Moreau" <francis.moro@gmail.com> writes:

> On Thu, Mar 6, 2008 at 10:42 PM, Nick Roberts <nickrob@snap.net.nz> wrote:
>> Francis Moreau writes:
>>   > On Thu, Mar 6, 2008 at 8:24 PM, Peter Dyballa <Peter_Dyballa@web.de> 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




  reply	other threads:[~2008-03-07  9:57 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-06 14:43 Change the default behaviour when 2 files are open Francis Moreau
2008-03-06 15:07 ` Joel J. Adamson
2008-03-06 21:07   ` Francis Moreau
2008-03-06 15:33 ` Bastien
2008-03-06 16:13   ` Francis Moreau
2008-03-06 19:24 ` Peter Dyballa
2008-03-06 21:04   ` Francis Moreau
2008-03-06 21:42     ` Nick Roberts
2008-03-07  8:17       ` Francis Moreau
2008-03-07  9:57         ` Thierry Volpiatto [this message]
2008-04-02  8:56       ` getting gdb init work on emacs Sanjeev Kumar.S
2008-04-03  3:01         ` Nick Roberts
     [not found]   ` <mailman.8460.1204837472.18990.help-gnu-emacs@gnu.org>
2008-03-06 21:48     ` Change the default behaviour when 2 files are open Sven Joachim

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bq5qsvoo.fsf@thievol.homelinux.org \
    --to=thierry.volpiatto@gmail.com \
    --cc=francis.moro@gmail.com \
    --cc=gnu-emacs-help@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).