emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bastien <bzg@altern.org>
To: emacs-orgmode@gnu.org
Subject: Re: Org-mode and emacs frames
Date: Fri, 07 Sep 2007 14:05:28 +0200	[thread overview]
Message-ID: <87sl5qhe9j.fsf@bzg.ath.cx> (raw)
In-Reply-To: <87r6laaef4.fsf@cerebellum.bealbywm.plus.com> (Martin Bealby's message of "Fri, 07 Sep 2007 12:43:59 +0100")

Martin Bealby <mbealby@gmail.com> 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

      reply	other threads:[~2007-09-07 12:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-07 11:43 Org-mode and emacs frames Martin Bealby
2007-09-07 12:05 ` Bastien [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sl5qhe9j.fsf@bzg.ath.cx \
    --to=bzg@altern.org \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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).