From 7bff813fc3d809ea1974d9cea4ae358e9bc3a3e5 Mon Sep 17 00:00:00 2001 From: Mathias Lavaert Date: Tue, 6 Oct 2020 17:38:10 +0200 Subject: [PATCH] Only check when formatting feature is enabled. --- modules/lang/java/doctor.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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.")))