diff options
author | talyz <kim.lindberger@gmail.com> | 2020-08-09 18:44:09 +0200 |
---|---|---|
committer | adisbladis <adisbladis@gmail.com> | 2020-08-11 18:17:19 +0200 |
commit | b9001814726b8309a89170ea23244d6a9dda707e (patch) | |
tree | bb7ba597434468e7b4ffaebd768becac809b29f1 /parse.nix | |
parent | aa199d5e708914d7cad2b5019b0d73d1adedb93d (diff) | |
download | nixlib-b9001814726b8309a89170ea23244d6a9dda707e.tar nixlib-b9001814726b8309a89170ea23244d6a9dda707e.tar.gz nixlib-b9001814726b8309a89170ea23244d6a9dda707e.tar.bz2 nixlib-b9001814726b8309a89170ea23244d6a9dda707e.tar.lz nixlib-b9001814726b8309a89170ea23244d6a9dda707e.tar.xz nixlib-b9001814726b8309a89170ea23244d6a9dda707e.tar.zst nixlib-b9001814726b8309a89170ea23244d6a9dda707e.zip |
Add `alwaysTangle` argument to emacsWithPackagesFromUsePackage
Add an option to tangle all Org mode babel code blocks by default and update the documentation.
Diffstat (limited to 'parse.nix')
-rw-r--r-- | parse.nix | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/parse.nix b/parse.nix index 7c1b53684835..db457ac51e86 100644 --- a/parse.nix +++ b/parse.nix @@ -1,7 +1,7 @@ { pkgs, lib }: let - inherit (import ./repos/fromElisp { inherit pkgs; }) fromElisp fromOrgModeBabelElisp; + inherit (import ./repos/fromElisp { inherit pkgs; }) fromElisp fromOrgModeBabelElisp'; isStrEmpty = s: (builtins.replaceStrings [ " " ] [ "" ] s) == ""; @@ -70,14 +70,15 @@ let # '' # => [ "direnv" "paredit" ] parsePackagesFromUsePackage = { - configText, - alwaysEnsure ? false, - isOrgModeFile ? false + configText + , alwaysEnsure ? false + , isOrgModeFile ? false + , alwaysTangle ? false }: let readFunction = if isOrgModeFile then - fromOrgModeBabelElisp + fromOrgModeBabelElisp' { ":tangle" = if alwaysTangle then "yes" else "no"; } else fromElisp; |