From 700b5d1c9be7aac3096e5045c51519b45ff74682 Mon Sep 17 00:00:00 2001 From: Adrien Date: Sun, 5 Jun 2022 19:39:07 +0200 Subject: [PATCH] Add flycheck-vale-config-file variable --- flycheck-vale.el | 7 +++++++ 1 file changed, 7 insertions(+) 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)