diff --git a/flycheck-vale.el b/flycheck-vale.el index 562f418..a22f587 100644 --- a/flycheck-vale.el +++ b/flycheck-vale.el @@ -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)