#Emacs users:

Has anyone seen a #flycheck equivalent to:

#LTeX

https://valentjn.github.io/ltex/index.html

LTeX is a shim over local #LanguageTool (local and remote) that is markup aware: It skips over verbatim and other markup!

I am a bit tired of the false-positives concerning verbatim mode in LanguageTool

I am aware of the LTeX-lsp server, however, flycheck...

LTeX – Grammar/Spell Checker Using LanguageTool with Support for LaTeX, Markdown, and Others | LTeX

Apparently the successor project is:

https://ltex-plus.github.io/ltex-plus/

LTeX+ – Grammar/Spell Checker Using LanguageTool with Support for LaTeX, Markdown, and Others | LTeX+

There is also a corresponding lsp server:

https://github.com/emacs-languagetool/lsp-ltex-plus

Sadly, it is not in MELPA.

I did however forget that there is LSP integration between LSP and flycheck...

however, this is not proving consistent when going between files.

Looks like a custom flycheck mode it is!

@jfdm Ooh this looks nice, setting up LTeX never quite worked right and was always a pain

@joey

Downloaded the binary, and it 'just' worked!

The emacs integration, however, has not been without pain. I've ended up defining a flycheck checker!

```
(flycheck-define-checker ltex-plus
"A linter for ltex-plus https://github.com/ltex-plus/ltex-ls-plus"
:command ("~/opt/ltex-ls-plus-18.4.0/bin/ltex-cli-plus"
source-inplace)
:error-patterns
((info line-start (file-name) ":" line ":" column ": info:"
(message (one-or-more not-newline)
(zero-or-more "\n" (any " ") (one-or-more not-newline)))
line-end))

((warning line-start (file-name) ":" line ":" column ": "
(message (one-or-more not-newline)
(zero-or-more "\n" (any " ") (one-or-more not-newline)))
line-end))
:modes (LaTeX-mode markdown-mode org-mode)
)
(add-to-list 'flycheck-checkers 'ltex-plus)
```

@joey As an aside, I have used:

style-check.rb (it is in Homebrew) with a custom flycheck checker for years [1].

Style-check.rb, however, was LaTeX aware and not markdown (nor org) aware.

[1] https://www.macs.hw.ac.uk/~rs46/posts/2018-12-29-stylecheck-flycheck.html