From: "B. T. Raven" <nihil@nihilo.net>
To: help-gnu-emacs@gnu.org
Subject: Re: opening two files side-by-side by default
Date: Thu, 18 Mar 2010 16:14:29 -0600 [thread overview]
Message-ID: <ZYudnYCPjtVaOD_WnZ2dnUVZ_tKdnZ2d@sysmatrix.net> (raw)
In-Reply-To: <hnu2h2$ojn$1@speranza.aioe.org>
Andrei Makeev wrote:
> Hello,
>
> sorry for a naive question:
> how to make emacs open two files,
>
> emacs -nw file1.txt file2.txt
>
> such that the two files are positioned
> side-by-side right away, instead of (default
> setting) one above the other?
> I believe I should put something involving
> (split-window-horizontally) in my .emacs
> files, but don't know how to do it exactly.
>
> Thanks!
> ~Andrei.
It looks like 'split-window-preferred-function should do this in ver. 23
I set it to 'split-window-horizontally and saved this option to .emacs.
But then running emacs -nw f1 f2 opened the two new buffers vertically
anyway. Try making the function 'split-window-sensibly and then setting
split-height-threshold and/or split-width-threshold to small values or nil.
Also maybe (delete-other-windows) and (split-window-horizontally) as the
last two forms in your .emacs might at least give you the layout,
although the same buffer will be in the two windows.
Ed
prev parent reply other threads:[~2010-03-18 22:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-18 20:32 opening two files side-by-side by default Andrei Makeev
2010-03-18 22:14 ` B. T. Raven [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZYudnYCPjtVaOD_WnZ2dnUVZ_tKdnZ2d@sysmatrix.net \
--to=nihil@nihilo.net \
--cc=help-gnu-emacs@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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.