* opening two files side-by-side by default
@ 2010-03-18 20:32 Andrei Makeev
2010-03-18 22:14 ` B. T. Raven
0 siblings, 1 reply; 2+ messages in thread
From: Andrei Makeev @ 2010-03-18 20:32 UTC (permalink / raw)
To: help-gnu-emacs
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: opening two files side-by-side by default
2010-03-18 20:32 opening two files side-by-side by default Andrei Makeev
@ 2010-03-18 22:14 ` B. T. Raven
0 siblings, 0 replies; 2+ messages in thread
From: B. T. Raven @ 2010-03-18 22:14 UTC (permalink / raw)
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-03-18 22:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-18 20:32 opening two files side-by-side by default Andrei Makeev
2010-03-18 22:14 ` B. T. Raven
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.