tweak(profiles): suppress profile init compilation warnings

It's not useful information, but should still be emitted if debug mode
is on.
This commit is contained in:
Henrik Lissner 2022-09-17 13:04:24 +02:00
parent 750d75a45b
commit edf54a398b
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -224,7 +224,8 @@ is non-nil, refresh the cache."
(user-error "To be a bootloader, Doom must be installed in ~/.config/emacs or ~/.emacs.d"))))))
:mode #o600
:printfn #'pp)
(byte-compile-file file))
(let ((byte-compile-warnings (if init-file-debug byte-compile-warnings)))
(print-group! (byte-compile-file file))))
(defun doom-profile-p (profile-name)
"Return t if PROFILE-NAME is a valid and existing profile."