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

@ -91,10 +91,10 @@ one wants that.")
(defun doom-cli--byte-compile-file (file)
(condition-case-unless-debug e
(let ((byte-compile-warnings (if doom-debug-mode byte-compile-warnings))
(let ((byte-compile-warnings (if doom-debug-p byte-compile-warnings))
(byte-compile-dynamic-docstrings t))
(when (byte-compile-file file)
(unless doom-interactive-mode
(unless doom-interactive-p
(add-hook 'doom-cli-post-success-execute-hook #'doom-cli--warn-refresh-session-h))
(load (byte-compile-dest-file file) nil t)))
(error