Change doom-{interactive,debug}-mode suffix to -p

Because these are not really modes.

Also makes `doom-debug-mode` an actual (global) minor mode.
This commit is contained in:
Henrik Lissner 2020-05-25 02:58:07 -04:00
parent 4f46140226
commit 3a38fc633c
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
20 changed files with 50 additions and 48 deletions

View file

@ -31,7 +31,7 @@
(defcli! :main
((help-p ["-h" "--help"] "Same as help command")
(debug-p ["-d" "--debug"] "Turns on doom-debug-mode (and debug-on-error)")
(debug-p ["-d" "--debug"] "Turns on doom-debug-p (and debug-on-error)")
(yes-p ["-y" "--yes"] "Auto-accept all confirmation prompts")
(emacsdir ["--emacsdir" dir] "Use the emacs config at DIR (e.g. ~/.emacs.d)")
(doomdir ["--doomdir" dir] "Use the private module at DIR (e.g. ~/.doom.d)")
@ -55,7 +55,7 @@ with a different private module."
(print! (info "DOOMLOCALDIR=%s") localdir))
(when debug-p
(setenv "DEBUG" "1")
(setq doom-debug-mode t)
(setq doom-debug-p t)
(print! (info "Debug mode on")))
(when yes-p
(setenv "YES" "1")