Replace reference to doom-ml--env-command: fix #30

This commit is contained in:
Robert Woods 2017-02-28 16:30:44 +10:30 committed by GitHub
parent e55fdee640
commit 553edc18a0

View file

@ -157,7 +157,7 @@ active."
(defun +doom-modeline|update-env ()
(when +doom-modeline-env-command
(let* ((default-directory (doom-project-root))
(s (shell-command-to-string doom-ml--env-command)))
(s (shell-command-to-string +doom-modeline-env-command)))
(setq +doom-modeline-env-version (if (string-match "[ \t\n\r]+\\'" s)
(replace-match "" t t s)
s)))))