Skip to content

Commit

Permalink
allow using Org config as defaultInitFile
Browse files Browse the repository at this point in the history
This commit is using Emacs for converting Org to Elisp
  • Loading branch information
Acid Bong committed Dec 9, 2023
1 parent ea9cd7c commit 1b5a9ee
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion elisp.nix
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,13 @@ emacsWithPackages (epkgs:
pname = "default";
src =
if defaultInitFile == true
then pkgs.writeText defaultInitFileName configText
then
if isOrgModeFile then pkgs.runCommand defaultInitFileName {} ''
cp ${config} config.org
${package}/bin/emacs -Q --batch config.org -f org-babel-tangle
cp config.el $out
''
else pkgs.writeText defaultInitFileName configText
else
if defaultInitFile.name == defaultInitFileName
then defaultInitFile
Expand Down

0 comments on commit 1b5a9ee

Please sign in to comment.