1
0
Fork 0
mirror of https://github.com/emacs-twist/org-babel.git synced 2024-12-15 17:50:48 +00:00
org-babel/nix/default.nix
2021-12-03 23:14:31 +09:00

20 lines
596 B
Nix

with builtins;
let
excludeOrgSubtreesOnHeadlines = import ./excludeOrgSubtreesOnHeadlines.nix;
matchOrgTag = import ./matchOrgTag.nix;
matchOrgHeadline = import ./matchOrgHeadline.nix;
matchOrgHeadlines = headlines: s:
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;
}