aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/rul-init.d/flycheck.el
blob: 6662c062a8feba7b826b8136849772534b50d0f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
;; 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)

;; 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