emacs-languagetool/eglot-ltex

Example for programming language

npajkovsky opened this issue · 2 comments

Hello,

can you please show me how to set it up for Rust (or any other language)?

I'm really struggling.

LTEX is a grammar checking tool. Not sure why you want it to work for Rust.

Here is the list of supported languages:

eglot-ltex/eglot-ltex.el

Lines 48 to 62 in 856daac

'((org-mode :language-id "org")
;; Hack for version >=16 of ltex-ls with git commit support. For
;; earlier versions it should just fall back to plaintext. This
;; requires setting git-commit-major-mode to
;; 'git-commit-elisp-text-mode. This is a hack because
;; git-commit-elisp-text-mode isn't a general purpose git commit
;; major mode, but it does the job
(git-commit-elisp-text-mode :language-id "gitcommit")
(bibtex-mode :language-id "bibtex")
(context-mode :language-id "context")
(latex-mode :language-id "latex")
(markdown-mode :language-id "markdown")
(rst-mode :language-id "restructuredtext")
(text-mode :language-id "plaintext"))
"List of major mode that work with LanguageTool."

Because I'm making typos in function names, comments, variables and nearly everywhere. It would be handy to have grammer/spell check similar to vscode or jetbrains.