From 2ca250f508f795fa786ea3b41f61a451a511a4a0 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Thu, 15 Feb 2018 22:58:17 +0100 Subject: Add option for not running generate*Sources task before check For large projects running generate*Sources can incur a heavy cost --- README | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'README') diff --git a/README b/README index 5615a14..47fd9e2 100644 --- a/README +++ b/README @@ -62,6 +62,16 @@ That should be it. (require 'flycheck-android-experimental) (setq flycheck-android-java-variant "devArm7Debug")))) += If you have a large project the default of always running generate*Sources += before checking the file might slow things down, if so set skip-gen + +(add-to-list + 'java-mode-hook + '(lambda () + (progn + (require 'flycheck-android-experimental) + (setq flycheck-android-java-skip-gen t)))) + = If you use checkstyle, you can expand the java-mode-hook: (add-to-list 'java-mode-hook -- cgit v1.2.3-70-g09d2