 ;;; core-modeline.el
 
 ;; This file tries to be an almost self-contained configuration of my mode-line.
-;; Any external dependencies are noted in comments.
+;;
+;; It depends on the following external packages:
+;;   + REQUIRED
+;;       + powerline
+;;       + evil-mode
+;;       + projectile
+;;   + OPTIONAL
+;;       + anzu
+;;       + iedit and evil-multiedit
+;;       + flycheck
+;;
+;; The only external functions used are:
+;;  `doom-fix-unicode'  in core/core-defuns.el
+;;  `doom/project-root' in core/defuns/defuns-projectile.el
+;;
+;; Both are simple, isolated functions and, besides projectile, has no other
+;; dependencies.
 
 (defvar mode-line-height 30
   "How tall the mode-line should be. This is only respected in GUI emacs.")

             doom--flycheck-cache)
        (and (setq doom--flycheck-err-cache flycheck-current-errors)
             (setq doom--flycheck-cache
                   (let ((fe (doom/-flycheck-count 'error))
                         (fw (doom/-flycheck-count 'warning)))
                     (concat
                      (if fe (propertize (format " •%d " fe)
                                         'face (if active

;; Functions
;;

(defun doom-ml-flycheck-count (state)
  "Return flycheck information for the given error type STATE."
  (when (flycheck-has-current-errors-p state)
    (if (eq 'running flycheck-last-status-change)
