fix(grammar): look for languagetool-commandline executable

nixpkgs.languagetool names its executable languagetool-commandline.

Ref: https://github.com/NixOS/nixpkgs/blob/nixos-22.11/pkgs/tools/text/languagetool/default.nix#L20
Close: #6959
Co-authored-by: venikx <venikx@users.noreply.github.com>
This commit is contained in:
Henrik Lissner 2023-02-23 01:00:37 -05:00
parent 89994b73a3
commit 552278655e
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -10,7 +10,9 @@
(unless (or langtool-bin
langtool-language-tool-jar
langtool-java-classpath)
(cond ((setq langtool-bin (executable-find "languagetool")))
(cond ((setq langtool-bin
(or (executable-find "languagetool-commandline")
(executable-find "languagetool")))) ; for nixpkgs.languagetool
(IS-MAC
(cond
;; is user using home brew?