Merge pull request #4349 from catap/macports
grammar: macports compatibility
This commit is contained in:
commit
f5dacce7f5
1 changed files with 11 additions and 5 deletions
|
@ -11,11 +11,17 @@
|
|||
langtool-language-tool-jar
|
||||
langtool-java-classpath)
|
||||
(cond (IS-MAC
|
||||
(cond
|
||||
;; is user using home brew?
|
||||
((file-directory-p "/usr/local/Cellar/languagetool")
|
||||
(setq langtool-language-tool-jar
|
||||
(locate-file "libexec/languagetool-commandline.jar"
|
||||
(doom-files-in "/usr/local/Cellar/languagetool"
|
||||
:type 'dirs
|
||||
:depth 2))))
|
||||
;; macports compatibility
|
||||
((file-directory-p "/opt/local/share/java/LanguageTool")
|
||||
(setq langtool-java-classpath "/opt/local/share/java/LanguageTool/*"))))
|
||||
(IS-LINUX
|
||||
(setq langtool-java-classpath "/usr/share/languagetool:/usr/share/java/languagetool/*")))))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue