aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/rul-init.d/flycheck.el
blob: 006081efb73b68f2f70541e9b57f70dcaa4f09b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
(use-package flycheck
  :ensure t
  :config

(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)

;; TODO: docker run --rm -p 8010:8010 erikvl87/languagetool
(use-package flycheck-languagetool
  :ensure t
  :hook (message-mode . flycheck-languagetool-setup)
  :init
  (setq flycheck-languagetool-url "http://localhost:8010")
))
nihil fit ex nihilo