mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Fix stringp error caused by app/write's doctor
Caused by langtool-langauge-tool-jar not being set (because defvar won't change a defined variable), and app/write/doctor.el uses it in a file-exists-p call, which throws the stringp error if given anything other than a string.
This commit is contained in:
@ -36,14 +36,15 @@
|
|||||||
langtool-correct-buffer)
|
langtool-correct-buffer)
|
||||||
:init (setq langtool-default-language "en-US")
|
:init (setq langtool-default-language "en-US")
|
||||||
:config
|
:config
|
||||||
(defvar langtool-language-tool-jar
|
(unless langtool-language-tool-jar
|
||||||
(cond (IS-MAC
|
(setq langtool-language-tool-jar
|
||||||
(locate-file "libexec/languagetool-commandline.jar"
|
(cond (IS-MAC
|
||||||
(doom-files-in "/usr/local/Cellar/languagetool"
|
(locate-file "libexec/languagetool-commandline.jar"
|
||||||
:type 'dirs
|
(doom-files-in "/usr/local/Cellar/languagetool"
|
||||||
:depth 1)))
|
:type 'dirs
|
||||||
(IS-LINUX
|
:depth 1)))
|
||||||
"/usr/share/java/languagetool/languagetool-commandline.jar"))))
|
(IS-LINUX
|
||||||
|
"/usr/share/java/languagetool/languagetool-commandline.jar")))))
|
||||||
|
|
||||||
|
|
||||||
;; `synosaurus'
|
;; `synosaurus'
|
||||||
|
Reference in New Issue
Block a user