commit 3846529156e812218775bb8c06abbc2a1d48f08b
parent 379ba22074663f0a550470317a06b6ecdc9fd300
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date: Sat, 4 May 2019 13:25:46 -0400
Add proselint
Diffstat:
1 file changed, 16 insertions(+), 0 deletions(-)
diff --git a/README.org b/README.org
@@ -698,6 +698,22 @@ Set various parameters for the checker.
(flycheck-clang-analyzer-setup)))
#+END_SRC
+*** Proselint
+A linter for prose, checks grammar and style errors. Setting from [[https://unconj.ca/blog/linting-prose-in-emacs.html][here]].
+
+#+BEGIN_SRC emacs-lisp
+ (flycheck-define-checker proselint
+ "A linter for prose."
+ :command ("proselint" source-inplace)
+ :error-patterns
+ ((warning line-start (file-name) ":" line ":" column ": "
+ (id (one-or-more (not (any " "))))
+ (message) line-end))
+ :modes (text-mode markdown-mode gfm-mode org-mode))
+
+ (add-to-list 'flycheck-checkers 'proselint)
+#+END_SRC
+
** Yasnippet
YASnippet is a template system for Emacs. It allows you to type an
abbreviation and automatically expand it into function templates.