[markdown] fix warning message for #14387

This commit is contained in:
Lin Sun 2021-02-19 10:03:33 +08:00 committed by Maximilian Wolff
parent 7e38f2e64e
commit 0220101c7f

View file

@ -73,9 +73,8 @@
when (executable-find cmd)
return (file-name-nondirectory it))))
command
(user-error (if markdown-executable
(format "Cannot find markdown-executable %s" markdown-executable)
"Please refer to the layer documentation and install a markdown command"))))
(when markdown-executable
(user-error (format "Cannot find markdown-executable %s" markdown-executable)))))
;; Declare prefixes and bind keys
(dolist (prefix '(("mc" . "markdown/command")