mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
app/write: minor refactor (use :when instead of when)
This commit is contained in:
@ -19,8 +19,8 @@
|
|||||||
;; 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
|
||||||
@ -34,15 +34,13 @@
|
|||||||
(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
|
||||||
|
Reference in New Issue
Block a user