 (def-modeline-segment! buffer-info
   "Combined information about the current buffer, including the current working
 directory, the file name, and its state (modified, read-only or non-existent)."
-  (let ((all-the-icons-scale-factor 1.2)
-        (modified-p (buffer-modified-p))
-        (active (active))
-        faces)
-    (if modified-p (push 'doom-modeline-buffer-modified faces))
+  (let* ((all-the-icons-scale-factor 1.2)
+         (modified-p (buffer-modified-p))
+         (active (active))
+         (faces (if modified-p 'doom-modeline-buffer-modified)))
     (concat (if buffer-read-only
                 (concat (all-the-icons-octicon
                          "lock"

(defun +doom-modeline--buffer-file ()
  "Display the base of the current buffer's filename."
  (if buffer-file-name
      (file-name-nondirectory buffer-file-truename)
    "%b"))

(defun +doom-modeline--buffer-path ()

;;; ui/doom-modeline/config.el

(eval-when-compile (require 'subr-x))

(line-number-mode -1)

