Merge pull request #2994 from jsravn/fix-langtool-on-linux

Fix langtool config for Linux
This commit is contained in:
Henrik Lissner 2020-04-28 23:56:31 -04:00 committed by GitHub
commit 1a376d45c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,15 +8,16 @@
:init (setq langtool-default-language "en-US")
:config
(unless (or langtool-bin
langtool-language-tool-jar)
(setq langtool-language-tool-jar
langtool-language-tool-jar
langtool-java-classpath)
(cond (IS-MAC
(setq langtool-language-tool-jar
(locate-file "libexec/languagetool-commandline.jar"
(doom-files-in "/usr/local/Cellar/languagetool"
:type 'dirs
:depth 2)))
:depth 2))))
(IS-LINUX
"/usr/share/java/languagetool/languagetool-commandline.jar")))))
(setq langtool-java-classpath "/usr/share/languagetool:/usr/share/java/languagetool/*")))))
;; Detects weasel words, passive voice and duplicates. Proselint would be a