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

View File

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