all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eric Schulte <eric.schulte@gmx.com>
To: Torsten Wagner <torsten.wagner@gmail.com>
Cc: Org Mode Mailing List <emacs-orgmode@gnu.org>
Subject: Re: [babel] keep source code buffer open
Date: Wed, 11 Apr 2012 10:06:39 -0400	[thread overview]
Message-ID: <87zkai2wi8.fsf@gmx.com> (raw)
In-Reply-To: <CAPaq-gO7dY3sywiJhbukgBKMSarj3JXvgUVEu9O8qtP6Y5qcPA@mail.gmail.com> (Torsten Wagner's message of "Wed, 11 Apr 2012 23:58:49 +0900")

Hi Torsten,

You could keep the buffer open but just save it with C-x C-s which will
propagate changes back to the original Org-mode buffer.

If you want to wrap the save->switch-to-org->export actions into a
single keystroke then I think an Emacs Macro or writing a simple
personal elisp function would be the best approach.

Best,

Torsten Wagner <torsten.wagner@gmail.com> writes:

> Hi,
> yep me again.
> I find myself hitting C-' all the day long today and was wondering is
> there a way to keep the source code buffer open instead of closing it
> after pressing again C-'.
> Now I need to do
> * C-' open the source code buffer
> * do my changed
> * C-' close the buffer take over the changes
> * C-c C-e d export as PDF after evaluation of all code blocks
> * check the PDF
> * start over again
> All this comes with window splits and most of the time I hit C-s in
> the wrong buffer because I am so used to it to save my changes to
> files.
>
> I would like to make changes in the code buffer and start e.g.
> evaluation or exporting from within the source code buffer.
>
> That is
> * Press once C-'
> * make my changes
> * press C-c ?? to move all changes over into the org-mode buffer and
> evaluate the source code block
> or
> * press C-c ?? to move all changes over into the org-mode buffer and
> export the org-buffer
> repeat
>
> Is there any way to do this?
>
> That's it for today... promise
>
> Thanks
> Torsten
>

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/

  reply	other threads:[~2012-04-11 16:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-11 14:58 [babel] keep source code buffer open Torsten Wagner
2012-04-11 14:06 ` Eric Schulte [this message]
2012-04-11 16:10 ` Christopher Witte

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

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

  git send-email \
    --in-reply-to=87zkai2wi8.fsf@gmx.com \
    --to=eric.schulte@gmx.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=torsten.wagner@gmail.com \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.