diff --git a/modules/lang/java/doctor.el b/modules/lang/java/doctor.el index 17bdd50dd..4a9372c23 100644 --- a/modules/lang/java/doctor.el +++ b/modules/lang/java/doctor.el @@ -8,5 +8,6 @@ (unless (executable-find "javac") (warn! "Couldn't find the javac executable, are you sure the JDK is installed?")) -(unless (executable-find "clang-format") - (warn! "Couldn't find clang-format. Code formatting will not work.")) +(when (featurep! :editor format) + (unless (executable-find "clang-format") + (warn! "Couldn't find clang-format. Code formatting will not work.")))