[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: switch-to-buffer-other-window to split vertically by default ?
From: |
Bastien |
Subject: |
Re: switch-to-buffer-other-window to split vertically by default ? |
Date: |
Fri, 09 Jun 2006 10:43:05 +0100 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) |
Romain Francoise <romain@orebokech.com> writes:
> It's not possible at the moment with a vanilla Emacs, the function that
> splits the window (`display-buffer') is in the C code and isn't easily
> customizable. This will change after the 22.1 release.
All right, thanks.
> However, if you use Debian's emacs-snapshot version, the following will
> do the trick:
>
> (defadvice switch-to-buffer-other-window (around change-split activate)
> (let ((display-buffer-prefer-horizontal-split t))
> ad-do-it))
I use Debian's emacs-snapshot but it doesn't work for me, even with
`display-buffer-prefer-horizontal-split' set to nil (wich seems more
appropriate).
I can't find any reference to `display-buffer-prefer-horizontal-split'
nor `display-buffer-prefer-vertical-split' with C-h v.
Note that I tried to activate the advice with
(ad-activate 'switch-to-buffer-other-window)
--
bastien