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
This commit is contained in:
Henrik Lissner 2022-08-09 17:12:56 +02:00
parent 24623f9959
commit 4cf5ae8be1
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -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."