emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Thorsten Jolitz <tjolitz@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: org-writers-room sort of works! just in time for NaNoWriMo
Date: Mon, 04 Nov 2013 02:10:08 +0100	[thread overview]
Message-ID: <87zjplnf9r.fsf@gmail.com> (raw)
In-Reply-To: CAN_Dec9djVEMi___hzPQe5k3Mdc1xPRJFrF_ZhqqsXCh9Da0pg@mail.gmail.com

Matt Price <moptop99@gmail.com> 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

  reply	other threads:[~2013-11-04  1:10 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-01  4:00 org-writers-room sort of works! just in time for NaNoWriMo Matt Price
2013-11-01  6:07 ` Ivan Andrus
2013-11-01  6:08 ` Alan L Tyree
2013-11-01  9:07   ` Ian Barton
2013-11-01 14:13     ` Matt Price
2013-11-01 14:12   ` Matt Price
2013-11-01 14:45     ` Thorsten Jolitz
2013-11-01 18:28     ` Alan L Tyree
2013-11-03  3:38       ` Matt Price
2013-11-04  1:10         ` Thorsten Jolitz [this message]
     [not found]           ` <CAN_Dec-+rQSqcDcjpFo9MsfuvK3Fc0bRDrMe_NR232XtcguUXg@mail.gmail.com>
     [not found]             ` <87a9hkjcli.fsf@gmail.com>
2013-11-05  9:54               ` Matt Price

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=87zjplnf9r.fsf@gmail.com \
    --to=tjolitz@gmail.com \
    --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).