From 8ad3a61276b0731434ace6318185759257fbd81d Mon Sep 17 00:00:00 2001 From: ndwarshuis Date: Thu, 20 Jun 2019 15:25:09 -0400 Subject: [PATCH] ADD force flycheck to use systemwide R and lintr (eg not docker) --- etc/conf.org | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/etc/conf.org b/etc/conf.org index 361a6ce..4a59097 100644 --- a/etc/conf.org +++ b/etc/conf.org @@ -745,9 +745,19 @@ Flycheck syntax checkers ((#'ess-set-working-directory :override #'ignore)) (apply orig-fun args))) + (advice-add #'run-ess-r :around #'nd/ess-r-start-env) (advice-add #'run-ess-r :around #'nd/ess-r-setwd-maybe) + +;; force flycheck to use the system-wide R install instead of whatever +;; is in docker +(defun nd/flycheck-find-exe-no-docker (orig-fun exe) + (if (or (equal exe "R") (s-starts-with? "R " exe)) + "/bin/R" (apply orig-fun args))) + +(advice-add #'flycheck-default-executable-find :around + #'nd/flycheck-find-exe-no-docker) #+END_SRC *** Python **** inferior shell