aboutsummaryrefslogtreecommitdiff
path: root/.emacs.local.d/modes/flycheck.el
diff options
context:
space:
mode:
Diffstat (limited to '.emacs.local.d/modes/flycheck.el')
-rw-r--r--.emacs.local.d/modes/flycheck.el12
1 files changed, 12 insertions, 0 deletions
diff --git a/.emacs.local.d/modes/flycheck.el b/.emacs.local.d/modes/flycheck.el
new file mode 100644
index 0000000..45571e2
--- /dev/null
+++ b/.emacs.local.d/modes/flycheck.el
@@ -0,0 +1,12 @@
+;; Debian-packages: elpa-flycheck python3-proselint
+
+(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)
nihil fit ex nihilo