From d7d006d91f2813656bdd72fea7b5739a143ff83e Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 6 Mar 2019 23:25:33 -0500 Subject: [PATCH] Remove reference to non-existent function --- doom-modeline-env.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doom-modeline-env.el b/doom-modeline-env.el index 0d65522..16ffb63 100644 --- a/doom-modeline-env.el +++ b/doom-modeline-env.el @@ -157,8 +157,9 @@ PARSER should be a function for parsing COMMAND's output line-by-line, to doom-modeline-env--parser ,parser-var) (doom-modeline-update-env)))) (format "Updates the %s version string in the modeline." ',name)) - (dolist (hook ',(doom-enlist (eval hooks))) - (add-hook hook #',setup-fn)))))) + (let ((hooks ',(eval hooks))) + (dolist (hook (if (listp hooks) hooks (list hooks))) + (add-hook hook #',setup-fn))))))) ;;