ADD force flycheck to use systemwide R and lintr (eg not docker)

This commit is contained in:
ndwarshuis 2019-06-20 15:25:09 -04:00
parent 86180667ba
commit 8ad3a61276
1 changed files with 10 additions and 0 deletions

View File

@ -745,9 +745,19 @@ Flycheck syntax checkers
((#'ess-set-working-directory :override #'ignore)) ((#'ess-set-working-directory :override #'ignore))
(apply orig-fun args))) (apply orig-fun args)))
(advice-add #'run-ess-r :around #'nd/ess-r-start-env) (advice-add #'run-ess-r :around #'nd/ess-r-start-env)
(advice-add #'run-ess-r :around #'nd/ess-r-setwd-maybe) (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 #+END_SRC
*** Python *** Python
**** inferior shell **** inferior shell