From af221ea1d84143ed3d41ba4a1ede682f9a6ca9f8 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Fri, 15 Jun 2018 14:53:45 +0800 Subject: [PATCH] =?UTF-8?q?Fix:=20Symbol=E2=80=99s=20value=20as=20variable?= =?UTF-8?q?=20is=20void:=20doom-modeline-fn-alist.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doom-modeline.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doom-modeline.el b/doom-modeline.el index 0d1c2fe..102c954 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -145,8 +145,9 @@ Body forms can access the hook's arguments through the let-bound variable ;; Modeline library ;; -(defvar doom-modeline-fn-alist ()) -(defvar doom-modeline-var-alist ()) +(eval-and-compile + (defvar doom-modeline-fn-alist ()) + (defvar doom-modeline-var-alist ())) (defmacro def-modeline-segment! (name &rest body) "Defines a modeline segment and byte compiles it."