From: tony day <zygomega@gmail.com>
To: Org-mode <emacs-orgmode@gnu.org>
Subject: Macro and babel
Date: Wed, 19 Sep 2012 10:54:10 +1000 [thread overview]
Message-ID: <4A8C5CE2-9159-49BB-A6F9-1FB8B8EAD154@gmail.com> (raw)
In-Reply-To: <m3392fhvcx.fsf@quad.robs.office>
I had written this:
,----
| #+MACRO: testdir ~/working
| #+begin_src sh
| cd {{{testdir}}}
| #+end_src
`----
Thinking it would do this:
,----
| #+begin_src sh
| cd ~/working
| #+end_src
`----
Alas, #+Macro acts on export only.
Is there a quick way to effect general text substitution on C-c C-c? That would be an awesome feature, basically adding macro capabilities to every babelable language. Or am I missing something?
Tony
next prev parent reply other threads:[~2012-09-19 0:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-18 21:30 Habit setup help needed Robert Horn
2012-09-19 0:54 ` tony day [this message]
2012-09-19 6:54 ` Macro and babel Sean O'Halpin
2012-09-19 8:01 ` Habit setup help needed Bastien
2012-09-19 10:55 ` Robert Horn
2012-09-20 11:14 ` Memnon Anon
2012-09-20 14:40 ` Robert Horn
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=4A8C5CE2-9159-49BB-A6F9-1FB8B8EAD154@gmail.com \
--to=zygomega@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).