mirror of
https://github.com/emacs-twist/org-babel.git
synced 2025-03-05 08:17:05 +00:00
feat: Add a convenient function for creating a file
This commit is contained in:
parent
9fb8001ae1
commit
3ca9905d0b
1 changed files with 4 additions and 0 deletions
|
@ -8,9 +8,13 @@ let
|
|||
builtins.any (t: matchOrgHeadline t s) headlines;
|
||||
|
||||
tangleOrgBabel = import ./tangleOrgBabel.nix;
|
||||
|
||||
tangleOrgBabelFile = name: path: options:
|
||||
toFile name (tangleOrgBabel options (readFile path));
|
||||
in
|
||||
{
|
||||
inherit matchOrgTag matchOrgHeadline matchOrgHeadlines;
|
||||
inherit excludeOrgSubtreesOnHeadlines;
|
||||
inherit tangleOrgBabel;
|
||||
inherit tangleOrgBabelFile;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue