From 4cf5ae8be1a29f4cffb72d644a5f173ca20a0b52 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 9 Aug 2022 17:12:56 +0200 Subject: [PATCH] fix(literate): tangling loop on 'doom sync' Why the setenv call wasn't persisted into session restart (#6642) needs further investigation, but for now this seems to solve the issue. Fix: #6642 --- modules/config/literate/autoload.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/config/literate/autoload.el b/modules/config/literate/autoload.el index ec6f56a1b..9591b4edd 100644 --- a/modules/config/literate/autoload.el +++ b/modules/config/literate/autoload.el @@ -53,9 +53,8 @@ (and (+literate-tangle +literate-config-file (concat doom-module-config-file ".el") doom-private-dir) - (setenv "__NOTANGLE" "1") (or (not noninteractive) - (exit! :restart))))) + (exit! "__NOTANGLE=1 $@"))))) (defun +literate-tangle--async () "Tangles `+literate-config-file' using an async Emacs process."