From bcca96a69a44c1a752dd58761f8c7e2b43695f0b Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 5 Aug 2022 00:46:44 +0200 Subject: [PATCH] refactor(literate): remove unused envvar __DOOMRESTART Also remove the "Restarting..." message; it's an implementation detail that isn't important to the end user. --- modules/config/literate/autoload.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/config/literate/autoload.el b/modules/config/literate/autoload.el index 3eb655b3c..c2e102711 100644 --- a/modules/config/literate/autoload.el +++ b/modules/config/literate/autoload.el @@ -49,8 +49,8 @@ (+literate-tangle +literate-config-file (concat doom-module-config-file ".el") doom-private-dir) - (always (print! "Restarting...")) - (exit! "__DOOMRESTART=1 __NOTANGLE=1 $@"))) + (setenv "__NOTANGLE" "1") + (exit! :restart))) (defun +literate-tangle--async () "Tangles `+literate-config-file' using an async Emacs process."