bin/doom: add -y/--yes option
This commit is contained in:
parent
499630fdcd
commit
8a7ebebf16
1 changed files with 4 additions and 3 deletions
7
bin/doom
7
bin/doom
|
@ -30,7 +30,8 @@
|
|||
(format! (bold "Options:\n"))
|
||||
" -d --debug\t\tTurns on doom-debug-mode (and debug-on-error)\n"
|
||||
" -e --emacsd DIR\tUse the emacs config at DIR (e.g. ~/.emacs.d)\n"
|
||||
" -p --private DIR\tUse the private module at DIR (e.g. ~/.doom.d)\n\n")
|
||||
" -p --private DIR\tUse the private module at DIR (e.g. ~/.doom.d)\n"
|
||||
" -y --yes\t\tAuto-accept all confirmation prompts\n\n")
|
||||
(princ (buffer-string)))
|
||||
(doom--dispatch-help))
|
||||
|
||||
|
@ -50,8 +51,8 @@
|
|||
(setq emacs-dir (expand-file-name (pop argv)))
|
||||
(or (file-directory-p emacs-dir)
|
||||
(error "%s does not exist" emacs-dir)))
|
||||
("--")
|
||||
(_)))
|
||||
((or "-y" "--yes")
|
||||
(setq doom-auto-accept t))))
|
||||
|
||||
;; Bootstrap Doom
|
||||
(load (expand-file-name "init" emacs-dir)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue