Fix #3804: rename TANGLE -> __TANGLE

So 'doom env' will naturally exclude it.
This commit is contained in:
Henrik Lissner 2020-08-22 03:37:14 -04:00
parent 0aab1118de
commit f83e6fe1cc
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -18,7 +18,7 @@ byte-compiled from.")
"Tangles `+literate-config-file' if it has changed." "Tangles `+literate-config-file' if it has changed."
(print! (start "Compiling your literate config...")) (print! (start "Compiling your literate config..."))
(print-group! (print-group!
(and (not (getenv "NOTANGLE")) (and (not (getenv "__NOTANGLE"))
(require 'ox nil t) (require 'ox nil t)
(require 'ob-tangle nil t) (require 'ob-tangle nil t)
(letf! ((default-directory doom-private-dir) (letf! ((default-directory doom-private-dir)
@ -72,7 +72,7 @@ byte-compiled from.")
(with-temp-file cache) (with-temp-file cache)
(if doom-interactive-p t (if doom-interactive-p t
(message "Restarting..." ) (message "Restarting..." )
(doom-cli-execute-lines-after "NOTANGLE=1 $@") (doom-cli-execute-lines-after "__NOTANGLE=1 $@")
(kill-emacs 0)))))) (kill-emacs 0))))))
;;;###autoload ;;;###autoload