From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Org-mode and emacs frames Date: Fri, 07 Sep 2007 14:05:28 +0200 Message-ID: <87sl5qhe9j.fsf@bzg.ath.cx> References: <87r6laaef4.fsf@cerebellum.bealbywm.plus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ITcah-0002X9-EX for emacs-orgmode@gnu.org; Fri, 07 Sep 2007 08:05:39 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ITcag-0002Wc-1E for emacs-orgmode@gnu.org; Fri, 07 Sep 2007 08:05:38 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ITcaf-0002WX-Qn for emacs-orgmode@gnu.org; Fri, 07 Sep 2007 08:05:37 -0400 Received: from hu-out-0506.google.com ([72.14.214.231]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ITcae-0000Mx-Lf for emacs-orgmode@gnu.org; Fri, 07 Sep 2007 08:05:36 -0400 Received: by hu-out-0506.google.com with SMTP id 23so139026huc for ; Fri, 07 Sep 2007 05:05:34 -0700 (PDT) In-Reply-To: <87r6laaef4.fsf@cerebellum.bealbywm.plus.com> (Martin Bealby's message of "Fri, 07 Sep 2007 12:43:59 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Martin Bealby writes: > I prefer to work in a single emacs frame which is split vertically to > give two columns. I would like org-mode to use only one of these > columns. I used to work in such a "vertical" environment and I then had this in my .emacs: --8<---------------cut here---------------start------------->8--- (defadvice switch-to-buffer-other-window (around change-split activate) (let ((display-buffer-prefer-horizontal-split nil)) ad-do-it)) (ad-deactivate 'switch-to-buffer-other-window) (defun my-display-buffer (buffer &optional not-this-window frame) (if (one-window-p) (let ((window (split-window-horizontally))) (set-window-buffer window buffer) window) (let (display-buffer-function) (display-buffer buffer not-this-window frame)))) (setq display-buffer-function 'my-display-buffer) --8<---------------cut here---------------end--------------->8--- I'm not sure will suit all your needs but I hope this is a first step. Regards, -- Bastien