emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/flymake-kondor 636c505 12/19: Pass lang to check edn files


From: ELPA Syncer
Subject: [nongnu] elpa/flymake-kondor 636c505 12/19: Pass lang to check edn files correctly
Date: Fri, 8 Oct 2021 08:58:13 -0400 (EDT)

branch: elpa/flymake-kondor
commit 636c505f1218a1de8565e41a1991b0d4272e158d
Author: Manuel Uberti <manuel.uberti@inventati.org>
Commit: Manuel Uberti <manuel.uberti@inventati.org>

    Pass lang to check edn files correctly
---
 flymake-kondor.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/flymake-kondor.el b/flymake-kondor.el
index 78eea2e..1e0f33a 100644
--- a/flymake-kondor.el
+++ b/flymake-kondor.el
@@ -39,10 +39,11 @@
 (require 'flymake-quickdef)
 
 (flymake-quickdef-backend flymake-kondor-backend
-  :pre-let ((kondor-exec (executable-find "clj-kondo")))
+  :pre-let ((kondor-exec (executable-find "clj-kondo"))
+            (lang (file-name-extension buffer-file-name)))
   :pre-check (unless kondor-exec (error "Not found clj-kondo on PATH"))
   :write-type 'pipe
-  :proc-form (list kondor-exec "--lint" "-")
+  :proc-form (list kondor-exec "--lint" "-" "--lang" lang)
   :search-regexp "^.+:\\([[:digit:]]+\\):\\([[:digit:]]+\\): 
\\([[:alpha:]]+\\): \\(.+\\)$"
   :prep-diagnostic
   (let* ((lnum (string-to-number (match-string 1)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]