bin/doom: set YES and DEBUG envvars on -y/-d
This commit is contained in:
parent
eea729fdf3
commit
2c0e93773b
1 changed files with 4 additions and 2 deletions
6
bin/doom
6
bin/doom
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue