From 284c8327c95bb0c71b111ebf95723a35a478295c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Benencia?= Date: Sun, 23 Jun 2019 11:43:30 -0700 Subject: Add emacs config --- .emacs.local.d/modes/flycheck.el | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .emacs.local.d/modes/flycheck.el (limited to '.emacs.local.d/modes/flycheck.el') 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) -- cgit v1.2.3