* How to configure default widow splitting orientation
@ 2008-09-02 14:44 Francis Moreau
0 siblings, 0 replies; 13+ messages in thread
From: Francis Moreau @ 2008-09-02 14:44 UTC (permalink / raw
To: gnu-emacs-help
Hello,
I'm trying to do that but fail to find any solutions.
Could someone give me some advices ?
thanks
--
Francis
^ permalink raw reply [flat|nested] 13+ messages in thread
[parent not found: <mailman.18205.1220366692.18990.help-gnu-emacs@gnu.org>]
* Re: How to configure default widow splitting orientation
[not found] <mailman.18205.1220366692.18990.help-gnu-emacs@gnu.org>
@ 2008-09-02 17:12 ` Pascal J. Bourguignon
2008-09-02 19:49 ` Tassilo Horn
2008-09-02 17:57 ` David Hansen
1 sibling, 1 reply; 13+ messages in thread
From: Pascal J. Bourguignon @ 2008-09-02 17:12 UTC (permalink / raw
To: help-gnu-emacs
"Francis Moreau" <francis.moro@gmail.com> writes:
> I'm trying to do that but fail to find any solutions.
>
> Could someone give me some advices ?
You choose between C-x 2 and C-x 3
If you want to swap the meaning, you can do:
(global-set-key (kbd "C-x 2") 'split-window-horizontally)
(global-set-key (kbd "C-x 3") 'split-window-vertically)
instead, but it's easier to shift your finger over to the 3
I'd say.
--
__Pascal Bourguignon__ http://www.informatimago.com/
You never feed me.
Perhaps I'll sleep on your face.
That will sure show you.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: How to configure default widow splitting orientation
2008-09-02 17:12 ` Pascal J. Bourguignon
@ 2008-09-02 19:49 ` Tassilo Horn
2008-09-03 10:09 ` Francis Moreau
0 siblings, 1 reply; 13+ messages in thread
From: Tassilo Horn @ 2008-09-02 19:49 UTC (permalink / raw
To: help-gnu-emacs
pjb@informatimago.com (Pascal J. Bourguignon) writes:
> "Francis Moreau" <francis.moro@gmail.com> writes:
>> I'm trying to do that but fail to find any solutions.
>>
>> Could someone give me some advices ?
>
> You choose between C-x 2 and C-x 3
I think he means how to control automatic splitting. In Emacs 23
there's
,----[ C-h v split-window-preferred-function RET ]
| split-window-preferred-function's value is nil
|
| Documentation:
| Function used by `display-buffer' to split windows.
| If non-nil, a function called with a window as single argument
| supposed to split that window and return the new window. If the
| function returns nil the window is not split.
|
| If nil, `display-buffer' will split the window respecting the
| values of `split-height-threshold' and `split-width-threshold'.
|
| You can customize this variable.
|
| This variable was introduced, or its default value was changed, in
| version 23.1 of Emacs.
`----
Bye,
Tassilo
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: How to configure default widow splitting orientation
2008-09-02 19:49 ` Tassilo Horn
@ 2008-09-03 10:09 ` Francis Moreau
2008-09-03 12:06 ` Lave
0 siblings, 1 reply; 13+ messages in thread
From: Francis Moreau @ 2008-09-03 10:09 UTC (permalink / raw
To: Tassilo Horn; +Cc: help-gnu-emacs
On Tue, Sep 2, 2008 at 9:49 PM, Tassilo Horn <tassilo@member.fsf.org> wrote:
> pjb@informatimago.com (Pascal J. Bourguignon) writes:
>
>> "Francis Moreau" <francis.moro@gmail.com> writes:
>>> I'm trying to do that but fail to find any solutions.
>>>
>>> Could someone give me some advices ?
>>
>> You choose between C-x 2 and C-x 3
>
> I think he means how to control automatic splitting. In Emacs 23
> there's
>
yes I do
> ,----[ C-h v split-window-preferred-function RET ]
> | split-window-preferred-function's value is nil
> |
> | Documentation:
> | Function used by `display-buffer' to split windows.
> | If non-nil, a function called with a window as single argument
> | supposed to split that window and return the new window. If the
> | function returns nil the window is not split.
> |
> | If nil, `display-buffer' will split the window respecting the
> | values of `split-height-threshold' and `split-width-threshold'.
> |
> | You can customize this variable.
> |
> | This variable was introduced, or its default value was changed, in
> | version 23.1 of Emacs.
> `----
>
Bad luck I'm currently using emacs 22.2.1 from FC9.
--
Francis
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: How to configure default widow splitting orientation
2008-09-03 10:09 ` Francis Moreau
@ 2008-09-03 12:06 ` Lave
2008-09-03 12:28 ` Francis Moreau
[not found] ` <mailman.18309.1220444927.18990.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 13+ messages in thread
From: Lave @ 2008-09-03 12:06 UTC (permalink / raw
To: Francis Moreau; +Cc: Tassilo Horn, help-gnu-emacs
I ever tried that, I put split-window-horizontally and
split-window-vertically 's combination with their parameters into
.emacs. And after startup, emacs splited to N windows.
Is it what you want?
2008/9/3, Francis Moreau <francis.moro@gmail.com>:
> On Tue, Sep 2, 2008 at 9:49 PM, Tassilo Horn <tassilo@member.fsf.org> wrote:
> > pjb@informatimago.com (Pascal J. Bourguignon) writes:
> >
> >> "Francis Moreau" <francis.moro@gmail.com> writes:
> >>> I'm trying to do that but fail to find any solutions.
> >>>
> >>> Could someone give me some advices ?
> >>
> >> You choose between C-x 2 and C-x 3
> >
> > I think he means how to control automatic splitting. In Emacs 23
> > there's
> >
>
> yes I do
>
> > ,----[ C-h v split-window-preferred-function RET ]
> > | split-window-preferred-function's value is nil
> > |
> > | Documentation:
> > | Function used by `display-buffer' to split windows.
> > | If non-nil, a function called with a window as single argument
> > | supposed to split that window and return the new window. If the
> > | function returns nil the window is not split.
> > |
> > | If nil, `display-buffer' will split the window respecting the
> > | values of `split-height-threshold' and `split-width-threshold'.
> > |
> > | You can customize this variable.
> > |
> > | This variable was introduced, or its default value was changed, in
> > | version 23.1 of Emacs.
> > `----
> >
>
> Bad luck I'm currently using emacs 22.2.1 from FC9.
>
> --
> Francis
>
>
>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: How to configure default widow splitting orientation
2008-09-03 12:06 ` Lave
@ 2008-09-03 12:28 ` Francis Moreau
[not found] ` <mailman.18309.1220444927.18990.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 13+ messages in thread
From: Francis Moreau @ 2008-09-03 12:28 UTC (permalink / raw
To: Lave; +Cc: Tassilo Horn, help-gnu-emacs
On Wed, Sep 3, 2008 at 2:06 PM, Lave <lave.wang.w@gmail.com> wrote:
> I ever tried that, I put split-window-horizontally and
> split-window-vertically 's combination with their parameters into
> .emacs. And after startup, emacs splited to N windows.
>
> Is it what you want?
no I'm asking for *automatic* splitting...
--
Francis
^ permalink raw reply [flat|nested] 13+ messages in thread
[parent not found: <mailman.18309.1220444927.18990.help-gnu-emacs@gnu.org>]
* Re: How to configure default widow splitting orientation
[not found] ` <mailman.18309.1220444927.18990.help-gnu-emacs@gnu.org>
@ 2008-09-03 16:18 ` weber
2008-09-04 7:23 ` Francis Moreau
0 siblings, 1 reply; 13+ messages in thread
From: weber @ 2008-09-03 16:18 UTC (permalink / raw
To: help-gnu-emacs
On Sep 3, 9:28 am, "Francis Moreau" <francis.m...@gmail.com> wrote:
> On Wed, Sep 3, 2008 at 2:06 PM, Lave <lave.wan...@gmail.com> wrote:
> > I ever tried that, I put split-window-horizontally and
> > split-window-vertically 's combination with their parameters into
> > .emacs. And after startup, emacs splited to N windows.
>
> > Is it what you want?
>
> no I'm asking for *automatic* splitting...
>
> --
> Francis
I used this for a while:
http://tsdh.wordpress.com/2007/03/09/automatically-split-window-horizontally-if-current-window-is-wide-enough/
-Hugo
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: How to configure default widow splitting orientation
2008-09-03 16:18 ` weber
@ 2008-09-04 7:23 ` Francis Moreau
2009-01-16 22:12 ` David Abrahams
0 siblings, 1 reply; 13+ messages in thread
From: Francis Moreau @ 2008-09-04 7:23 UTC (permalink / raw
To: weber; +Cc: help-gnu-emacs
On Wed, Sep 3, 2008 at 6:18 PM, weber <hugows@gmail.com> wrote:
> I used this for a while:
>
> http://tsdh.wordpress.com/2007/03/09/automatically-split-window-horizontally-if-current-window-is-wide-enough/
>
Thanks !
This should do the trick until I upgrade to emacs 23.1
--
Francis
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: How to configure default widow splitting orientation
2008-09-04 7:23 ` Francis Moreau
@ 2009-01-16 22:12 ` David Abrahams
2009-01-16 22:49 ` David Abrahams
[not found] ` <mailman.5091.1232146174.26697.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 13+ messages in thread
From: David Abrahams @ 2009-01-16 22:12 UTC (permalink / raw
To: help-gnu-emacs
on Thu Sep 04 2008, "Francis Moreau" <francis.moro-AT-gmail.com> wrote:
> On Wed, Sep 3, 2008 at 6:18 PM, weber <hugows@gmail.com> wrote:
>> I used this for a while:
>>
>>
> http://tsdh.wordpress.com/2007/03/09/automatically-split-window-horizontally-if-current-window-is-wide-enough/
>>
>
> Thanks !
>
> This should do the trick until I upgrade to emacs 23.1
Hmm, I've been using something else (even though I am on an emacs
snapshot and I should have a customizable
`split-window-preferred-function'). I'm not sure yet whether my
approach has any advantages over the customization; if not, I'm inclined
to drop it.
See
http://github.com/techarcana/elisp/blob/7eb6347a0aab8f444c7b645f4b5383613493a913/elisp/config.d/window-splitting.el
--
Dave Abrahams
BoostPro Computing
http://www.boostpro.com
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: How to configure default widow splitting orientation
2009-01-16 22:12 ` David Abrahams
@ 2009-01-16 22:49 ` David Abrahams
[not found] ` <mailman.5091.1232146174.26697.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 13+ messages in thread
From: David Abrahams @ 2009-01-16 22:49 UTC (permalink / raw
To: help-gnu-emacs
on Fri Jan 16 2009, David Abrahams <dave-AT-boostpro.com> wrote:
> on Thu Sep 04 2008, "Francis Moreau" <francis.moro-AT-gmail.com> wrote:
>
>> On Wed, Sep 3, 2008 at 6:18 PM, weber <hugows@gmail.com> wrote:
>>> I used this for a while:
>>>
>>>
>>
> http://tsdh.wordpress.com/2007/03/09/automatically-split-window-horizontally-if-current-window-is-wide-enough/
>>>
>>
>> Thanks !
>>
>> This should do the trick until I upgrade to emacs 23.1
>
> Hmm, I've been using something else (even though I am on an emacs
> snapshot and I should have a customizable
> `split-window-preferred-function'). I'm not sure yet whether my
> approach has any advantages over the customization; if not, I'm
> inclined to drop it.
>
> See
> http://github.com/techarcana/elisp/blob/7eb6347a0aab8f444c7b645f4b5383613493a913/elisp/config.d/window-splitting.el
Okay, this is really weird. First I tried disabling my advice and
customizing split-window-preferred-function to 'split-window-horizontally
instead. All heck broke loose: just trying to do tab completion in the
minibuffer would result in "Attempt to split minibuffer window" errors.
Then I removed the customization and left my advice disabled.
Everything worked exactly as it had seemed to with the advice
enabled. Beautiful!
Why is that weird, though? Well, I finally broke down and wrote that
advice because I had gotten tired of getting the wrong window splits
while using my current version of Emacs, *a CVS snapshot from earlier
this month*.
Hmm, (emacs-version) says:
"GNU Emacs 23.0.60.2 (i686-pc-linux-gnu, GTK+ Version 2.14.4) of 2009-01-05 on mcbain"
where is 23.1 and why does my snapshot have an earlier version number?
Thanks,
--
Dave Abrahams
BoostPro Computing
http://www.boostpro.com
^ permalink raw reply [flat|nested] 13+ messages in thread
[parent not found: <mailman.5091.1232146174.26697.help-gnu-emacs@gnu.org>]
* Re: How to configure default widow splitting orientation
[not found] ` <mailman.5091.1232146174.26697.help-gnu-emacs@gnu.org>
@ 2009-01-16 23:03 ` B. T. Raven
0 siblings, 0 replies; 13+ messages in thread
From: B. T. Raven @ 2009-01-16 23:03 UTC (permalink / raw
To: help-gnu-emacs
David Abrahams wrote:
> on Fri Jan 16 2009, David Abrahams <dave-AT-boostpro.com> wrote:
>
>> on Thu Sep 04 2008, "Francis Moreau" <francis.moro-AT-gmail.com> wrote:
>>
>>> On Wed, Sep 3, 2008 at 6:18 PM, weber <hugows@gmail.com> wrote:
>>>> I used this for a while:
>>>>
>>>>
>> http://tsdh.wordpress.com/2007/03/09/automatically-split-window-horizontally-if-current-window-is-wide-enough/
>>> Thanks !
>>>
>>> This should do the trick until I upgrade to emacs 23.1
>> Hmm, I've been using something else (even though I am on an emacs
>> snapshot and I should have a customizable
>> `split-window-preferred-function'). I'm not sure yet whether my
>> approach has any advantages over the customization; if not, I'm
>> inclined to drop it.
>>
>> See
>> http://github.com/techarcana/elisp/blob/7eb6347a0aab8f444c7b645f4b5383613493a913/elisp/config.d/window-splitting.el
>
> Okay, this is really weird. First I tried disabling my advice and
> customizing split-window-preferred-function to 'split-window-horizontally
> instead. All heck broke loose: just trying to do tab completion in the
> minibuffer would result in "Attempt to split minibuffer window" errors.
> Then I removed the customization and left my advice disabled.
>
> Everything worked exactly as it had seemed to with the advice
> enabled. Beautiful!
>
> Why is that weird, though? Well, I finally broke down and wrote that
> advice because I had gotten tired of getting the wrong window splits
> while using my current version of Emacs, *a CVS snapshot from earlier
> this month*.
>
> Hmm, (emacs-version) says:
>
> "GNU Emacs 23.0.60.2 (i686-pc-linux-gnu, GTK+ Version 2.14.4) of 2009-01-05 on mcbain"
>
> where is 23.1 and why does my snapshot have an earlier version number?
I don't think it exists yet. That's why Hugo wrote "until I can ...."
The 23.0.... whatever, suffixes are something like a beta version.
>
> Thanks,
>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: How to configure default widow splitting orientation
[not found] <mailman.18205.1220366692.18990.help-gnu-emacs@gnu.org>
2008-09-02 17:12 ` Pascal J. Bourguignon
@ 2008-09-02 17:57 ` David Hansen
2008-09-03 10:10 ` Francis Moreau
1 sibling, 1 reply; 13+ messages in thread
From: David Hansen @ 2008-09-02 17:57 UTC (permalink / raw
To: help-gnu-emacs
On Tue, 2 Sep 2008 16:44:41 +0200 Francis Moreau wrote:
> I'm trying to do that but fail to find any solutions.
>
> Could someone give me some advices ?
This might be what you are looking for:
`split-window-preferred-function'.
David
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: How to configure default widow splitting orientation
2008-09-02 17:57 ` David Hansen
@ 2008-09-03 10:10 ` Francis Moreau
0 siblings, 0 replies; 13+ messages in thread
From: Francis Moreau @ 2008-09-03 10:10 UTC (permalink / raw
To: David Hansen; +Cc: help-gnu-emacs
On Tue, Sep 2, 2008 at 7:57 PM, David Hansen <david.hansen@gmx.net> wrote:
> On Tue, 2 Sep 2008 16:44:41 +0200 Francis Moreau wrote:
>
>> I'm trying to do that but fail to find any solutions.
>>
>> Could someone give me some advices ?
>
> This might be what you are looking for:
> `split-window-preferred-function'.
>
> David
>
Unfortunately it's only available since emacs 23.1
thanks
--
Francis
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2009-01-16 23:03 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-02 14:44 How to configure default widow splitting orientation Francis Moreau
[not found] <mailman.18205.1220366692.18990.help-gnu-emacs@gnu.org>
2008-09-02 17:12 ` Pascal J. Bourguignon
2008-09-02 19:49 ` Tassilo Horn
2008-09-03 10:09 ` Francis Moreau
2008-09-03 12:06 ` Lave
2008-09-03 12:28 ` Francis Moreau
[not found] ` <mailman.18309.1220444927.18990.help-gnu-emacs@gnu.org>
2008-09-03 16:18 ` weber
2008-09-04 7:23 ` Francis Moreau
2009-01-16 22:12 ` David Abrahams
2009-01-16 22:49 ` David Abrahams
[not found] ` <mailman.5091.1232146174.26697.help-gnu-emacs@gnu.org>
2009-01-16 23:03 ` B. T. Raven
2008-09-02 17:57 ` David Hansen
2008-09-03 10:10 ` Francis Moreau
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).