Make the wordnut configuration more resilient

This commit is contained in:
Gerard Vermeulen 2022-05-22 14:38:11 +02:00
parent 7265a52214
commit 4732440144

View File

@ -2656,9 +2656,12 @@ the [[https://github.com/gromnitsky/wordnut#readme][wordnut]] prerequisites.
#+caption: System check for =wordnut=.
#+name: lst:check-wordnut
#+begin_src emacs-lisp
(when (and (ensure-package-installation 'wordnut)
(executable-find "wn"))
(message "`wordnut' fails to find the `wn' executable"))
(when (ensure-package-installation 'wordnut)
(with-eval-after-load 'wordnut
(if-let ((wn (executable-find "wn")))
(custom-set-variables
'(wordnut-cmd wn))
(message "`wordnut' fails to find the `wn' executable"))))
#+end_src
*** [[https://github.com/bnbeckwith/writegood-mode#readme][Writegood mode]]