branch: externals/wcheck-mode commit a8dcccb16a7187c051d4b2cf65ba58b7860a8354 Author: justbur <jus...@burkett.cc> Commit: justbur <jus...@burkett.cc>
Allow exec-path search to find external program --- wcheck-mode.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/wcheck-mode.el b/wcheck-mode.el index dd38361..42efc94 100644 --- a/wcheck-mode.el +++ b/wcheck-mode.el @@ -2022,9 +2022,10 @@ a (valid) value for the KEY then query the value from (defun wcheck--program-executable-p (program) "Return t if PROGRAM is executable regular file." (and (stringp program) - (file-regular-p program) - (file-executable-p program) - t)) + (or (and (file-regular-p program) + (file-executable-p program)) + (executable-find program)))) + (defun wcheck--program-configured-p (language)