fix(grammar): use languagetool in $PATH, if available

This commit is contained in:
Haisheng 2022-10-03 09:33:28 -07:00 committed by GitHub
parent 4a2cbc903d
commit 57e99650d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,7 +10,8 @@
(unless (or langtool-bin (unless (or langtool-bin
langtool-language-tool-jar langtool-language-tool-jar
langtool-java-classpath) langtool-java-classpath)
(cond (IS-MAC (cond ((setq langtool-bin (executable-find "languagetool")))
(IS-MAC
(cond (cond
;; is user using home brew? ;; is user using home brew?
((file-directory-p "/usr/local/Cellar/languagetool") ((file-directory-p "/usr/local/Cellar/languagetool")