Fix #180: Error for TRAMP python in doom-modeline-env.

Check if the env command exists.
This commit is contained in:
Vincent Zhang 2019-05-31 13:47:08 +08:00
parent b0e61befc9
commit 97dba610f8

View file

@ -60,6 +60,7 @@ Example: 'doom-modeline-env--ruby")
"Update environment info on mode-line."
(when (and doom-modeline-env-version
doom-modeline-env--command
(executable-find doom-modeline-env--command)
doom-modeline-env--command-args
doom-modeline-env--parser)
(let ((default-directory (doom-modeline-project-root))