summaryrefslogtreecommitdiff
path: root/modules/emacs/org.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/emacs/org.nix')
-rw-r--r--modules/emacs/org.nix20
1 files changed, 10 insertions, 10 deletions
diff --git a/modules/emacs/org.nix b/modules/emacs/org.nix
index e5fd15c..f795ddd 100644
--- a/modules/emacs/org.nix
+++ b/modules/emacs/org.nix
@@ -1,11 +1,11 @@
-{ pkgs, from-elisp }: {
- org-tangle = block-predicate: text:
- let blocks = (pkgs.callPackage from-elisp { inherit pkgs; }).parseOrgModeBabel text;
- block-to-str = (block:
- if block-predicate { inherit (block) language flags; } then
- block.body
- else
- ""
- );
- in builtins.concatStringsSep "\n" (map block-to-str blocks);
+{ callPackage, from-elisp }: {
+ org-tangle = block-predicate: text: let
+ blocks = (callPackage from-elisp { }).parseOrgModeBabel text;
+ block-to-str = block:
+ if block-predicate { inherit (block) language flags; } then
+ block.body
+ else
+ "";
+ in
+ builtins.concatStringsSep "\n" (map block-to-str blocks);
}