Merge pull request #31 from rjww/v2

Replace reference to doom-ml--env-command: fix #30
This commit is contained in:
Henrik Lissner 2017-02-28 08:47:23 -05:00 committed by GitHub
commit 59d2e71e04

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)))))