summaryrefslogtreecommitdiff
path: root/modules/emacs/org.nix
diff options
context:
space:
mode:
authorLeonardo Santiago <[email protected]>2024-10-29 00:09:24 -0300
committerLeonardo Santiago <[email protected]>2024-10-29 00:09:24 -0300
commit8de0064b16a1cc27deedee06c05e6343a197e175 (patch)
tree60a5cb3d570733cf0ab474e05b99a63f89f1a63b /modules/emacs/org.nix
parent4842e81317e9815540d559d689be51d13191e1e4 (diff)
revert emacs-overlay to last where ox-hugo worked.
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);
}