[Emacs] Remove LanguageTool LSP

The package already installed is more than enough
This commit is contained in:
Lucien Cartier-Tilet 2023-09-17 17:51:28 +02:00
parent 92460b57d4
commit 640207c305
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -6433,27 +6433,6 @@ in quite a few languages.
"r" #'langtool-correct-region))
#+end_src
An LSP version of LanguageTools is also available:
#+begin_src emacs-lisp
(use-package lsp-ltex
:defer t
:straight (:build t)
:after lsp
:hook (text-mode . lsp-deferred)
:init
(setq lsp-ltex-java-force-try-system-wide t
lsp-ltex-server-store-path nil
lsp-ltex-version (gethash "ltex-ls"
(json-parse-string
(replace-regexp-in-string
(rx "Picked" (* any) "\n")
""
(shell-command-to-string "ltex-ls -V"))))
lsp-ltex-check-frequency "save"
lsp-ltex-language "auto"
lsp-ltex-mother-tongue "fr"))
#+end_src
Finally, =writegood-mode= detects some simple general rules when writing
in English and can also calculate the Flesh-Kincaid levels of a
document.