bin/doom: set YES and DEBUG envvars on -y/-d

This commit is contained in:
Henrik Lissner 2018-06-15 04:13:03 +02:00
parent eea729fdf3
commit 2c0e93773b
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -47,7 +47,8 @@
((or "-h" "--help") ((or "-h" "--help")
(error "Did you mean 'doom help'?")) (error "Did you mean 'doom help'?"))
((or "-d" "--debug") ((or "-d" "--debug")
(setq doom-debug-mode t)) (setq doom-debug-mode t)
(setenv "DEBUG" "1"))
((or "-i" "--insecure") ((or "-i" "--insecure")
(setenv "INSECURE" "1")) (setenv "INSECURE" "1"))
((or "-p" "--private") ((or "-p" "--private")
@ -59,7 +60,8 @@
(or (file-directory-p emacs-dir) (or (file-directory-p emacs-dir)
(error "%s does not exist" emacs-dir))) (error "%s does not exist" emacs-dir)))
((or "-y" "--yes") ((or "-y" "--yes")
(setq doom-auto-accept t)))) (setq doom-auto-accept t)
(setenv "YES" "1"))))
;; Bootstrap Doom ;; Bootstrap Doom
(load (expand-file-name "init" emacs-dir) (load (expand-file-name "init" emacs-dir)