From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: org-writers-room sort of works! just in time for NaNoWriMo Date: Mon, 04 Nov 2013 02:10:08 +0100 Message-ID: <87zjplnf9r.fsf@gmail.com> References: <87a9hovem1.fsf@breezy.my.home> <878ux8ugbu.fsf@breezy.my.home> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34128) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vd8gW-00028s-Tl for emacs-orgmode@gnu.org; Sun, 03 Nov 2013 20:10:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vd8gR-0000PZ-2I for emacs-orgmode@gnu.org; Sun, 03 Nov 2013 20:10:28 -0500 Received: from plane.gmane.org ([80.91.229.3]:39240) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vd8gQ-0000PN-O1 for emacs-orgmode@gnu.org; Sun, 03 Nov 2013 20:10:22 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Vd8gM-0003n0-HH for emacs-orgmode@gnu.org; Mon, 04 Nov 2013 02:10:18 +0100 Received: from e178190228.adsl.alicedsl.de ([85.178.190.228]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 04 Nov 2013 02:10:18 +0100 Received: from tjolitz by e178190228.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 04 Nov 2013 02:10:18 +0100 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: emacs-orgmode@gnu.org Matt Price writes: Hi Matt, I've pushed a new version of org-writers-room to the repo, > > https://github.com/titaniumbones/org-writers-room > > It's still rather simple, but some of the awful usability bugs are > less severe: - org-writers-room can only be called from an org-mode > buffer - when disabled, org-writers-room gets rid of the extra windows > it created Doesn't restore a pre-existing windowing setup yet, > unfortunately -- I would love some advice about how to do that. these are the lines in outorg.el that deal with the window configuration, maybe they can give you an idea of the simple way I saved and restored the initial window-config when launching/killing the outorg-edit-buffer: ,---------------------------------------------------------------------------- | 12 matches for "window" in buffer: outorg.el | 145:(defvar outorg-initial-window-config nil | 146: "Initial window-configuration when editing as Org.") | 217:first line of the window showing the editing buffer." | 359: (setq outorg-initial-window-config nil) | 442: (setq outorg-initial-window-config | 443: (current-window-configuration)) | 654: (if (one-window-p) (split-window-sensibly (get-buffer-window))) | 655: (switch-to-buffer-other-window edit-buffer) | 1038: (setq outorg-initial-window-config | 1039: (current-window-configuration)) | 1063: (set-window-configuration | 1064: outorg-initial-window-config) `---------------------------------------------------------------------------- > - the guide window displays a half-decent collapsed outline of the > document by default. > > Unfortunately, one you start typing the guide mode starts to display > your new text. I don't know if there's a way around this, and > probably it would be better to use one of the existing outline modes > for the guide window, but I don't know how to use those. Maybe > Thorsten or someone can comment on how to improve that. unfortunately I have no time to checkout your writers mode right now, although I find the idea quite interesting and will give it a try next time I have a writing project. If the doc is an Org-mode doc, navi-mode.el should work out of the box - just follow the installation instructions. It offers many views on the associated document, outlines, keywords, and combinations of both. You can customize (improve) the current keyword searches, and define your own keyword searche too, simply by customizing 2 variables. You would have to make the *Navi* buffer pop up in the right window in your config, then you can switch back and forth from the document to *Navi* buffer (with M-s M-s and d or s or o). -- cheers, Thorsten