app/write: minor refactor (use :when instead of when)
This commit is contained in:
parent
ed1ede4385
commit
2d9fb67903
1 changed files with 20 additions and 22 deletions
|
@ -19,30 +19,28 @@
|
||||||
;; Plugins
|
;; Plugins
|
||||||
;;
|
;;
|
||||||
|
|
||||||
(when (featurep! +langtool)
|
(def-package! langtool
|
||||||
(def-package! langtool
|
:when (featurep! +langtool)
|
||||||
:commands (langtool-check
|
:commands (langtool-check
|
||||||
langtool-check-done
|
langtool-check-done
|
||||||
langtool-switch-default-language
|
langtool-switch-default-language
|
||||||
langtool-show-message-at-point
|
langtool-show-message-at-point
|
||||||
langtool-correct-buffer)
|
langtool-correct-buffer)
|
||||||
:init
|
:init
|
||||||
(setq langtool-default-language "en-US")
|
(setq langtool-default-language "en-US")
|
||||||
:config
|
:config
|
||||||
(unless langtool-language-tool-jar
|
(unless langtool-language-tool-jar
|
||||||
(setq langtool-language-tool-jar
|
(setq langtool-language-tool-jar
|
||||||
(cond (IS-MAC
|
(cond (IS-MAC
|
||||||
"/usr/local/Cellar/languagetool/4.0/libexec/languagetool-commandline.jar")
|
"/usr/local/Cellar/languagetool/4.0/libexec/languagetool-commandline.jar")
|
||||||
(IS-LINUX
|
(IS-LINUX
|
||||||
"/usr/share/java/languagetool/languagetool-commandline.jar")))
|
"/usr/share/java/languagetool/languagetool-commandline.jar")))))
|
||||||
(unless (file-exists-p langtool-language-tool-jar)
|
|
||||||
(warn! "Couldn't find languagetool-commandline.jar")))))
|
|
||||||
|
|
||||||
|
|
||||||
(when (featurep! +wordnut)
|
(def-package! wordnut
|
||||||
(def-package! wordnut
|
:when (featurep! +wordnut)
|
||||||
:commands (wordnut-search
|
:commands (wordnut-search
|
||||||
wordnut-lookup-current-word)))
|
wordnut-lookup-current-word))
|
||||||
|
|
||||||
|
|
||||||
(def-package! synosaurus
|
(def-package! synosaurus
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue