Improve: Use misc-info segment instead of global segment.

This commit is contained in:
Vincent Zhang 2018-12-20 23:05:54 +08:00
parent 0d6e5f7d50
commit f71f16a3eb

View file

@ -1375,15 +1375,14 @@ Requires `eyebrowse-mode' to be enabled."
;; ;;
;; global ;; misc info
;; ;;
(doom-modeline-def-segment global (doom-modeline-def-segment misc-info
"For the time string and whatever uses global-mode-string." "Mode line construct for miscellaneous information.
(if (and (doom-modeline--active) By default, this shows the information specified by `global-mode-string'."
(< 0 (length global-mode-string))) (if (doom-modeline--active)
'("" global-mode-string " ") mode-line-misc-info))
""))
;; ;;
@ -1576,7 +1575,7 @@ mouse-3: Describe current input method")
(doom-modeline-def-modeline 'main (doom-modeline-def-modeline 'main
'(bar workspace-number window-number evil-state god-state ryo-modal xah-fly-keys matches " " buffer-info remote-host buffer-position " " selection-info) '(bar workspace-number window-number evil-state god-state ryo-modal xah-fly-keys matches " " buffer-info remote-host buffer-position " " selection-info)
'(global persp-name lsp github minor-modes input-method buffer-encoding major-mode process vcs flycheck)) '(misc-info persp-name lsp github minor-modes input-method buffer-encoding major-mode process vcs flycheck))
(doom-modeline-def-modeline 'minimal (doom-modeline-def-modeline 'minimal
'(bar matches " " buffer-info) '(bar matches " " buffer-info)
@ -1584,15 +1583,15 @@ mouse-3: Describe current input method")
(doom-modeline-def-modeline 'special (doom-modeline-def-modeline 'special
'(bar window-number evil-state god-state ryo-modal xah-fly-keys matches " " buffer-info-simple buffer-position " " selection-info) '(bar window-number evil-state god-state ryo-modal xah-fly-keys matches " " buffer-info-simple buffer-position " " selection-info)
'(global lsp minor-modes input-method buffer-encoding major-mode process flycheck)) '(misc-info lsp minor-modes input-method buffer-encoding major-mode process flycheck))
(doom-modeline-def-modeline 'project (doom-modeline-def-modeline 'project
'(bar window-number buffer-default-directory) '(bar window-number buffer-default-directory)
'(global major-mode)) '(misc-info major-mode))
(doom-modeline-def-modeline 'media (doom-modeline-def-modeline 'media
'(bar window-number " %b ") '(bar window-number " %b ")
'(global media-info major-mode)) '(misc-info media-info major-mode))
;; ;;
;; Hooks ;; Hooks