Add flycheck-vale-config-file variable

This commit is contained in:
2022-06-05 19:39:07 +02:00
parent f082495353
commit 700b5d1c9b

View File

@@ -65,6 +65,11 @@
:type '(string)
:group 'flycheck-vale)
(defcustom flycheck-vale-config-file "~/.vale.ini"
"Path to the vale configuration file."
:type 'file
:group 'flycheck-vale)
(defvar-local flycheck-vale-enabled t
"Buffer-local variable determining if flycheck-vale should be applied.")
@@ -131,6 +136,8 @@ passing the results to CALLBACK."
(proc (start-process "flycheck-vale-process"
flycheck-vale-output-buffer
flycheck-vale-program
"--config"
(expand-file-name flycheck-vale-config-file)
"--output"
"JSON")))
(let ((checker checker)