FIX R exe bug

This commit is contained in:
Nathan Dwarshuis 2019-10-25 22:04:42 -04:00
parent 67cd8f9bad
commit 0c21c9ce8a
1 changed files with 1 additions and 1 deletions

View File

@ -755,7 +755,7 @@ Flycheck syntax checkers
;; 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)))
"/bin/R" (funcall orig-fun exe)))
(advice-add #'flycheck-default-executable-find :around
#'nd/flycheck-find-exe-no-docker)