Fix: Symbol’s value as variable is void: doom-modeline-fn-alist.

This commit is contained in:
Vincent Zhang 2018-06-15 14:53:45 +08:00
parent 8bf477c3ab
commit af221ea1d8

View file

@ -145,8 +145,9 @@ Body forms can access the hook's arguments through the let-bound variable
;; Modeline library ;; Modeline library
;; ;;
(defvar doom-modeline-fn-alist ()) (eval-and-compile
(defvar doom-modeline-var-alist ()) (defvar doom-modeline-fn-alist ())
(defvar doom-modeline-var-alist ()))
(defmacro def-modeline-segment! (name &rest body) (defmacro def-modeline-segment! (name &rest body)
"Defines a modeline segment and byte compiles it." "Defines a modeline segment and byte compiles it."