Skip to content

Commit

Permalink
Add Flycheck plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
suchow committed Feb 19, 2016
1 parent a32bf54 commit 19dcd9c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions plugins/flycheck/flycheck-proselint.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
; To install flycheck from MELPA, evaluate:
;
; (add-hook 'markdown-mode-hook #'flycheck-mode)
; (add-hook 'text-mode-hook #'flycheck-mode)

(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 (one-or-more not-newline)
(zero-or-more "\n" (any " ") (one-or-more not-newline)))
line-end))
:modes (text-mode markdown-mode gfm-mode))
(add-to-list 'flycheck-checkers 'proselint)

0 comments on commit 19dcd9c

Please sign in to comment.