Commits

Ivan Andrus committed bf7b638

Fixed problem with mode-line display

Comments (0)

Files changed (1)

   nil "" '()
   (if nanowrimo-mode
       (progn
-        (add-to-list 'global-mode-string 'nanowrimo--display)
+        (or global-mode-string (setq global-mode-string '("")))
+        (add-to-list 'global-mode-string 'nanowrimo--display t)
         (add-to-list 'after-change-functions 'nanowrimo-mode-update)
         (setq nanowrimo--start-wc (nanowrimo-count-words))
         (setq nanowrimo--start-time (current-time))