emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is it possible to #+include: src blocks and tangle them too?


From: Nicolas Goaziou
Subject: Re: Is it possible to #+include: src blocks and tangle them too?
Date: Mon, 12 Apr 2021 23:38:31 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)

Hello,

Ramachandran Lakshmanan <rama@tzrl.org> writes:

> I have been wanting to include a number of small Common Lisp snippets in
> individual files which I then include into a "master" .org file using:
>
> #+include: "snippet.org" src lisp
>
> Within snippet.org I have a src block such as:
>

[...]

> I read somewhere that this is not possible in orgmode.  Is this true?  And
> if not, can you point me to the right documentation?

#+include is a keyword specific to export. I doubt it would work with
tangling out of the box.

However, you may try calling `org-export-expand-include-keyword' from
`org-babel-pre-tangle-hook'. Untested.

Regards,
-- 
Nicolas Goaziou



reply via email to

[Prev in Thread] Current Thread [Next in Thread]