diff --git a/bin/doom b/bin/doom index b2d15728f..856028da7 100755 --- a/bin/doom +++ b/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)