           (window-numbering-mode 1)))
       (evil-leader/set-key "tm" 'powerline-minor-modes-toggle)
 
-      (defpowerline powerline-window-number 
+      (defun spacemacs/window-number ()
+        "Return the number of the window."
         (let ((num (window-numbering-get-number-string)))
           (cond ((not (display-graphic-p)) (concat "(" num ")"))
                 ((equal num "1")  " ➊ ")

        (if (eq (frame-selected-window) (selected-window))
            (if (fboundp 'flycheck-has-current-errors-p)
                (cond ((flycheck-has-current-errors-p 'error)
                       'spacemacs-mode-line-color-error)
                      ((flycheck-has-current-errors-p 'warning)
                       'spacemacs-mode-line-color-warning)
                      ((flycheck-has-current-errors-p 'info)
                       'spacemacs-mode-line-color-info)
                      (t nil))
              nil)
          nil))

                 (lhs (append (list
                      ;; window number
                      ;; (powerline-wave-left state-face face1)
                      (powerline-raw (spacemacs/window-number) state-face)
                      (powerline-wave-right state-face nil)
                      ;; evil state
                      ;; (powerline-raw evil-mode-line-tag state-face)
