From 8de0064b16a1cc27deedee06c05e6343a197e175 Mon Sep 17 00:00:00 2001 From: Leonardo Santiago Date: Tue, 29 Oct 2024 00:09:24 -0300 Subject: revert emacs-overlay to last where ox-hugo worked. --- modules/emacs/org.nix | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'modules/emacs/org.nix') 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); } -- cgit v1.2.3