mirror of
https://github.com/emacs-twist/org-babel.git
synced 2024-12-14 11:07:30 +00:00
tangle header
This commit is contained in:
parent
b448845abb
commit
2d6478e6a7
1 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
# Quick-and-dirty re-implementation of org-babel-tangle in Nix.
|
# Quick-and-dirty re-implementation of org-babel-tangle in Nix.
|
||||||
{ languages ? [ "emacs-lisp" "elisp" ]
|
{ languages ? [ "emacs-lisp" "elisp" ]
|
||||||
, processLines ? lines: lines
|
, processLines ? lines: lines
|
||||||
|
, tangleArg ? "yes"
|
||||||
}:
|
}:
|
||||||
string:
|
string:
|
||||||
with builtins;
|
with builtins;
|
||||||
|
@ -26,7 +27,7 @@ let
|
||||||
(attrValues
|
(attrValues
|
||||||
(mapAttrs (name: value:
|
(mapAttrs (name: value:
|
||||||
if name == ":tangle"
|
if name == ":tangle"
|
||||||
then value == "yes"
|
then value == tangleArg
|
||||||
else true
|
else true
|
||||||
) attrs));
|
) attrs));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue