Put the global segment to the first of the right panel.

This commit is contained in:
Vincent Zhang 2018-07-11 17:06:34 +08:00
parent 88b3f84bdd
commit 773382202e

View file

@ -1035,7 +1035,7 @@ enabled."
(doom-modeline-def-segment global (doom-modeline-def-segment global
"For the time string and whatever uses global-mode-string." "For the time string and whatever uses global-mode-string."
(when (< 0 (length global-mode-string)) (when (< 0 (length global-mode-string))
'(" " global-mode-string))) '(" " global-mode-string " ")))
;; ;;
@ -1073,7 +1073,7 @@ See `mode-line-percent-position'.")
(doom-modeline-def-modeline main (doom-modeline-def-modeline main
(workspace-number window-number bar matches " " buffer-info buffer-position " " selection-info) (workspace-number window-number bar matches " " buffer-info buffer-position " " selection-info)
(buffer-encoding major-mode vcs flycheck global)) (global buffer-encoding major-mode vcs flycheck))
(doom-modeline-def-modeline minimal (doom-modeline-def-modeline minimal
(bar matches " " buffer-info) (bar matches " " buffer-info)
@ -1081,15 +1081,15 @@ See `mode-line-percent-position'.")
(doom-modeline-def-modeline special (doom-modeline-def-modeline special
(window-number bar matches " " buffer-info-simple buffer-position " " selection-info) (window-number bar matches " " buffer-info-simple buffer-position " " selection-info)
(buffer-encoding major-mode flycheck global)) (global buffer-encoding major-mode flycheck))
(doom-modeline-def-modeline project (doom-modeline-def-modeline project
(window-number bar buffer-default-directory) (window-number bar buffer-default-directory)
(major-mode global)) (global major-mode))
(doom-modeline-def-modeline media (doom-modeline-def-modeline media
(window-number bar " %b ") (window-number bar " %b ")
(media-info major-mode global)) (global media-info major-mode))
;; ;;
;; Hooks ;; Hooks