[emacs] Set up vale linter instead of using the built-in grammar

This commit is contained in:
Sebastian Schulze 2023-03-10 13:10:56 +01:00
parent 56f3b94ce6
commit 784d36663c
No known key found for this signature in database
GPG Key ID: F6BA63C6A7D3044E
2 changed files with 9 additions and 2 deletions

View File

@ -225,7 +225,14 @@
(plist-get (car-safe (mu4e-message-field msg :to)) :email)
(cdr-safe (assoc 'user-mail-address (mu4e-context-vars (mu4e-context-current)))))))
(after! flycheck-vale (flycheck-vale-setup))
(after! flycheck
(flycheck-define-checker vale
"A checker for prose"
:command ("vale" "--output" "line" source)
:standard-input nil
:error-patterns ((error line-start (file-name) ":" line ":" column ":" (id (one-or-more (not (any ":")))) ":" (message) line-end))
:modes (markdown-mode markdown-mode gfm-mode org-mode text-mode))
(add-to-list 'flycheck-checkers 'vale 'append))
(after! mu4e
(setq

View File

@ -45,7 +45,7 @@
:checkers
(syntax +childframe) ; tasing you for every semicolon you forget
(spell +aspell) ; tasing you for misspelling mispelling
grammar ; tasing grammar mistake every you make
;grammar ; tasing grammar mistake every you make
:tools
(lsp +peek)