 
 (def-modeline! main
   (bar matches " " buffer-info "  %l:%c %p  " selection-info)
-  (buffer-encoding vcs major-mode flycheck))
+  (buffer-encoding major-mode vcs flycheck))
 
 (def-modeline! eldoc
   (eldoc-bar " " eldoc)


;; These bars regulate the height of the mode-line in GUI Emacs.
(def-modeline-segment! bar
  (+doom-modeline--make-xpm
   (face-background (if (active)
                        'doom-modeline-bar
                      'doom-modeline-inactive-bar)
                    nil t)
   +doom-modeline-height
   +doom-modeline-bar-width))

(def-modeline-segment! eldoc-bar
  "A differently colored bar, to signify an eldoc display."
  (+doom-modeline--make-xpm
   (face-background 'doom-modeline-eldoc-bar nil t)
   +doom-modeline-height
   +doom-modeline-bar-width))


;;

          (active  (active))
          (all-the-icons-scale-factor 1.0)
          (all-the-icons-default-adjust -0.1))
      (concat "  "
              (cond ((memq state '(edited added))
                     (if active (setq face 'doom-modeline-info))
                     (all-the-icons-octicon
                      "git-compare"
                      :face face
                      :height 1.2
                      :v-adjust -0.05))
