Add flycheck-vale-config-file variable
This commit is contained in:
@@ -65,6 +65,11 @@
|
|||||||
:type '(string)
|
:type '(string)
|
||||||
:group 'flycheck-vale)
|
: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
|
(defvar-local flycheck-vale-enabled t
|
||||||
"Buffer-local variable determining if flycheck-vale should be applied.")
|
"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"
|
(proc (start-process "flycheck-vale-process"
|
||||||
flycheck-vale-output-buffer
|
flycheck-vale-output-buffer
|
||||||
flycheck-vale-program
|
flycheck-vale-program
|
||||||
|
"--config"
|
||||||
|
(expand-file-name flycheck-vale-config-file)
|
||||||
"--output"
|
"--output"
|
||||||
"JSON")))
|
"JSON")))
|
||||||
(let ((checker checker)
|
(let ((checker checker)
|
||||||
|
Reference in New Issue
Block a user