mirror of
https://github.com/emacs-twist/org-babel.git
synced 2024-12-14 11:07:30 +00:00
28 lines
820 B
Nix
28 lines
820 B
Nix
with builtins;
|
|
let
|
|
excludeOrgSubtreesOnHeadlines = import ./excludeOrgSubtreesOnHeadlines.nix;
|
|
selectHeadlines = import ./selectHeadlines.nix;
|
|
|
|
matchOrgTag = import ./matchOrgTag.nix;
|
|
matchOrgHeadline = import ./matchOrgHeadline.nix;
|
|
matchOrgHeadlines = headlines: s:
|
|
builtins.any (t: matchOrgHeadline t s) headlines;
|
|
|
|
tangleOrgBabel = import ./tangleOrgBabel.nix;
|
|
in
|
|
{
|
|
# Newer concise APIs
|
|
excludeHeadlines = excludeOrgSubtreesOnHeadlines;
|
|
inherit selectHeadlines;
|
|
tag = matchOrgTag;
|
|
headlineText = matchOrgHeadline;
|
|
allP = predicates: x: builtins.all (p: p x) predicates;
|
|
anyP = predicates: x: builtins.any (p: p x) predicates;
|
|
|
|
# Deprecated APIs
|
|
inherit matchOrgTag matchOrgHeadline matchOrgHeadlines;
|
|
inherit excludeOrgSubtreesOnHeadlines;
|
|
|
|
# Tangle
|
|
inherit tangleOrgBabel;
|
|
}
|