From: Kaushal Modi <kaushal.modi@gmail.com>
To: David Rogoff <david@therogoffs.com>
Cc: emacs-org list <emacs-orgmode@gnu.org>
Subject: Re: macro replacement in code block?
Date: Wed, 01 Nov 2017 18:48:46 +0000 [thread overview]
Message-ID: <CAFyQvY24O2GkofsezA8pxqi3S5AzJBXkzL33CCyhEw6jWAT22w@mail.gmail.com> (raw)
In-Reply-To: <95C792B0-79AC-4F65-B07B-F7787D25352D@therogoffs.com>
[-- Attachment #1: Type: text/plain, Size: 719 bytes --]
On Wed, Nov 1, 2017 at 1:32 PM David Rogoff <david@therogoffs.com> wrote:
> Thanks so much. It sort of works but with a bit of work-around:
>
Great!
> 2) for export, I had to move the
>
> ,#+MACRO: SEC_FOO
>
> lines out of the code block. If I didn’t and tried to eval that block, I
> got the error
>
> No org-babel-execute function for org!
>
You just need to add org as an org babel language:
(let (ob-lang-alist)
(add-to-list 'ob-lang-alist '(org . t))
(org-babel-do-load-languages 'org-babel-load-languages ob-lang-alist))
You don't necessarily need the let form above, but that is in a form that
allows easily adding more languages in future.
--
Kaushal Modi
[-- Attachment #2: Type: text/html, Size: 1557 bytes --]
prev parent reply other threads:[~2017-11-01 18:49 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-31 23:13 macro replacement in code block? David Rogoff
2017-11-01 0:32 ` Kaushal Modi
2017-11-01 3:21 ` David Rogoff
2017-11-01 15:51 ` Kaushal Modi
2017-11-01 16:04 ` Multi-line noweb expansion in elisp insert form (Was Re: macro replacement in code block?) Kaushal Modi
2017-11-01 16:17 ` macro replacement in code block? Kaushal Modi
2017-11-01 17:32 ` David Rogoff
2017-11-01 18:48 ` Kaushal Modi [this message]
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=CAFyQvY24O2GkofsezA8pxqi3S5AzJBXkzL33CCyhEw6jWAT22w@mail.gmail.com \
--to=kaushal.modi@gmail.com \
--cc=david@therogoffs.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).