* Changing horizontal window split default to vertical?
@ 2007-02-20 5:50 Stephan Kuhagen
2007-02-20 8:18 ` Alexey Pustyntsev
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: Stephan Kuhagen @ 2007-02-20 5:50 UTC (permalink / raw)
To: help-gnu-emacs
My dear Emacs Wizards!
Although I'm using the mighty Emacs for nearly 16 years now, I encountered a
new problem with its behaviour (of course, this is not the guilt of Emacs,
but of the now mainstream 16:10 displays): When I start Emacs with two
files (often a *cpp, and its *h), Emacs opens the two buffers in two
windows, one above and one below a horizontal splitter. I like to have them
left and right from a vertical splitter. Is there a switch or some magic
lisp setting, I can add to my .emacs to make Emacs do this?
Regards and thanks
Stephan
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Changing horizontal window split default to vertical?
2007-02-20 5:50 Changing horizontal window split default to vertical? Stephan Kuhagen
@ 2007-02-20 8:18 ` Alexey Pustyntsev
2007-02-20 8:28 ` David Hansen
` (2 subsequent siblings)
3 siblings, 0 replies; 7+ messages in thread
From: Alexey Pustyntsev @ 2007-02-20 8:18 UTC (permalink / raw)
To: help-gnu-emacs
Stephan Kuhagen <nospam@domain.tld> writes:
> My dear Emacs Wizards!
>
> Although I'm using the mighty Emacs for nearly 16 years now, I encountered a
> new problem with its behaviour (of course, this is not the guilt of Emacs,
> but of the now mainstream 16:10 displays): When I start Emacs with two
> files (often a *cpp, and its *h), Emacs opens the two buffers in two
> windows, one above and one below a horizontal splitter. I like to have them
> left and right from a vertical splitter. Is there a switch or some magic
> lisp setting, I can add to my .emacs to make Emacs do this?
>
> Regards and thanks
> Stephan
>
> _______________________________________________
> help-gnu-emacs mailing list
> help-gnu-emacs@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
>
How about
(setq split-window-horizontally t) ?
--
Rgds
Alexey
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Changing horizontal window split default to vertical?
2007-02-20 5:50 Changing horizontal window split default to vertical? Stephan Kuhagen
2007-02-20 8:18 ` Alexey Pustyntsev
@ 2007-02-20 8:28 ` David Hansen
[not found] ` <mailman.4805.1171960713.2155.help-gnu-emacs@gnu.org>
[not found] ` <mailman.4804.1171958583.2155.help-gnu-emacs@gnu.org>
3 siblings, 0 replies; 7+ messages in thread
From: David Hansen @ 2007-02-20 8:28 UTC (permalink / raw)
To: help-gnu-emacs
On Tue, 20 Feb 2007 06:50:54 +0100 Stephan Kuhagen wrote:
> of course, this is not the guilt of Emacs, but of the now
> mainstream 16:10 displays
You can rotate it and use the xrandr extension :)
David
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Changing horizontal window split default to vertical?
[not found] ` <mailman.4804.1171958583.2155.help-gnu-emacs@gnu.org>
@ 2007-02-20 8:33 ` Stephan Kuhagen
2007-02-20 13:39 ` Alexey Pustyntsev
2007-02-21 4:24 ` Stefan Monnier
1 sibling, 1 reply; 7+ messages in thread
From: Stephan Kuhagen @ 2007-02-20 8:33 UTC (permalink / raw)
To: help-gnu-emacs
Alexey Pustyntsev wrote:
> How about
>
> (setq split-window-horizontally t) ?
No, doesn't change anything, although in a running Emacs it is exactly the
command to split the windows like I want to. But does not change the
startup behaviour.
Stephan
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Changing horizontal window split default to vertical?
[not found] ` <mailman.4805.1171960713.2155.help-gnu-emacs@gnu.org>
@ 2007-02-20 9:33 ` Stephan Kuhagen
0 siblings, 0 replies; 7+ messages in thread
From: Stephan Kuhagen @ 2007-02-20 9:33 UTC (permalink / raw)
To: help-gnu-emacs
David Hansen wrote:
> You can rotate it and use the xrandr extension :)
Sure, I had that idea too, but I did not manage to move my eyes above and
below my nose to get a vertical extended viewing field... ;-)
Stephan
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Changing horizontal window split default to vertical?
2007-02-20 8:33 ` Stephan Kuhagen
@ 2007-02-20 13:39 ` Alexey Pustyntsev
0 siblings, 0 replies; 7+ messages in thread
From: Alexey Pustyntsev @ 2007-02-20 13:39 UTC (permalink / raw)
To: help-gnu-emacs
Stephan Kuhagen <nospam@domain.tld> writes:
> Alexey Pustyntsev wrote:
>
>> How about
>>
>> (setq split-window-horizontally t) ?
>
> No, doesn't change anything, although in a running Emacs it is exactly the
> command to split the windows like I want to. But does not change the
> startup behaviour.
>
> Stephan
Thanks to Juri Linkov, I borrowed the following code from his nice
site
http://www.jurta.org/emacs
(add-hook 'after-init-hook
(lambda ()
;; Show home directory on left pane, and last visited file on right
(split-window-horizontally)
(dired (my-home ?h)))
;; Note that 3-rd argument of this `add-hook' should be `t'
;; to append the call of the `dired' after other hooked functions,
;; most importantly after `desktop-read'.
t)
The above code works all right for me and does split the window as you
asked. Hopefully, that may help you.
--
Rgds
Alexey
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Changing horizontal window split default to vertical?
[not found] ` <mailman.4804.1171958583.2155.help-gnu-emacs@gnu.org>
2007-02-20 8:33 ` Stephan Kuhagen
@ 2007-02-21 4:24 ` Stefan Monnier
1 sibling, 0 replies; 7+ messages in thread
From: Stefan Monnier @ 2007-02-21 4:24 UTC (permalink / raw)
To: help-gnu-emacs
>> Although I'm using the mighty Emacs for nearly 16 years now, I encountered a
>> new problem with its behaviour (of course, this is not the guilt of Emacs,
>> but of the now mainstream 16:10 displays): When I start Emacs with two
>> files (often a *cpp, and its *h), Emacs opens the two buffers in two
>> windows, one above and one below a horizontal splitter. I like to have them
>> left and right from a vertical splitter. Is there a switch or some magic
>> lisp setting, I can add to my .emacs to make Emacs do this?
> (setq split-window-horizontally t) ?
I can't see any mention of this variable in Emacs's sources. Looking at the
code of display-buffer, I think the only solution is to write a new function
that does the same (except split horizontally) and then place it on
display-buffer-function :-(
Stefan
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2007-02-21 4:24 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-20 5:50 Changing horizontal window split default to vertical? Stephan Kuhagen
2007-02-20 8:18 ` Alexey Pustyntsev
2007-02-20 8:28 ` David Hansen
[not found] ` <mailman.4805.1171960713.2155.help-gnu-emacs@gnu.org>
2007-02-20 9:33 ` Stephan Kuhagen
[not found] ` <mailman.4804.1171958583.2155.help-gnu-emacs@gnu.org>
2007-02-20 8:33 ` Stephan Kuhagen
2007-02-20 13:39 ` Alexey Pustyntsev
2007-02-21 4:24 ` Stefan Monnier
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).