From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eduardo Ochs Subject: Re: naming and/or directly addressing particular windows? Date: Sat, 1 Dec 2012 14:58:38 -0200 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=14dae9340a097b99d104cfcd6dcd Return-path: Received: from eggs.gnu.org ([208.118.235.92]:37252) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TeqOo-0004wB-1u for emacs-orgmode@gnu.org; Sat, 01 Dec 2012 11:58:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TeqOm-0006oE-I6 for emacs-orgmode@gnu.org; Sat, 01 Dec 2012 11:58:41 -0500 Received: from mail-ie0-f169.google.com ([209.85.223.169]:54777) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TeqOm-0006o8-BQ for emacs-orgmode@gnu.org; Sat, 01 Dec 2012 11:58:40 -0500 Received: by mail-ie0-f169.google.com with SMTP id c14so2641854ieb.0 for ; Sat, 01 Dec 2012 08:58:39 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Matt Price , Org Mode --14dae9340a097b99d104cfcd6dcd Content-Type: text/plain; charset=ISO-8859-1 Hi Matt, if you are considering using a little language to create window configurations then maybe you will find this interesting: http://angg.twu.net/eev-intros/find-multiwindow-intro.html http://angg.twu.net/eev-current/eev-multiwindow.el.html Cheers! Eduardo Ochs eduardoochs@gmail.com http://angg.twu.net/#eev On Sat, Dec 1, 2012 at 1:22 PM, Matt Price wrote: > Hi, > > After the recent conversation about Scrivener (on help-gnu-emacs) I > thought the very first step would be to write a simple function that > would create a window layout and populate the windows with a set of > buffers, then set mjor and minor modes for some of hte buffers. > (After that I guess I will have to figure out how to write some very > simple minor modes, or at least some functions that allow e.g. direct > editing of org-mode properties on a selected node.) > > So, what I have so far is quite trivial but doesn't seem to work > exactly as I expected: > > (delete-other-windows) > (split-window-horizontally) > (windmove-right) > (split-window-horizontally) > (enlarge-window-horizontally 20) > (windmove-right) > (split-window-vertically) > > > Anyway presumably I'll fiddle with this and eventually it will work, > but something better would be > > (set-window-name "outline") > (split-named-window-horizontally-and-name-the-other-window "outline" > "main") > (split-named-window-horizontally-and-name-the-other-window "main" > "metadata") > (set-width-named-window "main" 60) > > and then write a function, bound to say Ctrl-Enter, > > open-node-as-indirect-buffer-in-named-window > > Anyway: is it possible to give/get a name for a window that persists > long enough to be called in functions? > > Thanks, > Matt > > --14dae9340a097b99d104cfcd6dcd Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Matt,

if you are considering using a little language = to create window configurations
then maybe you will find this int= eresting:

Cheers!
=A0 Eduardo Ochs
=A0 http://angg.twu.net/#eev<= /div>

=A0

On Sat, Dec = 1, 2012 at 1:22 PM, Matt Price <moptop99@gmail.com> wrote:<= br>
Hi,

After the recent conversation about Scrivener (on help-gnu-emacs) I
thought the very first step would be to write a simple function that
would create a window layout and populate the windows with a set of
buffers, then set mjor and minor modes for some of hte buffers.
(After that I guess I will have to figure out how to write some very
simple minor modes, or at least some functions that allow e.g. direct
editing of org-mode properties on a selected node.)

So, what I have so far is quite trivial but doesn't seem to work
exactly as I expected:

(delete-other-windows)
(split-window-horizontally)
(windmove-right)
(split-window-horizontally)
(enlarge-window-horizontally 20)
(windmove-right)
(split-window-vertically)


Anyway presumably I'll fiddle with this and eventually it will work, but something better would be

(set-window-name "outline")
(split-named-window-horizontally-and-name-the-other-window "outline&qu= ot; "main")
(split-named-window-horizontally-and-name-the-other-window "main"= "metadata")
(set-width-named-window "main" 60)

and then write a function, bound to say Ctrl-Enter,

open-node-as-indirect-buffer-in-named-window

Anyway: =A0is it possible to give/get a name for a window that persists
long enough to be called in functions?

Thanks,
Matt


--14dae9340a097b99d104cfcd6dcd--