mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-23 19:19:50 +00:00
Support global-mode-string in mode-line.
This commit is contained in:
parent
845e0319d3
commit
4d4ec2e856
1 changed files with 13 additions and 4 deletions
|
@ -1012,13 +1012,22 @@ enabled."
|
|||
(propertize (format "%s " str) 'face 'doom-modeline-eyebrowse))
|
||||
""))
|
||||
|
||||
;;
|
||||
;; global
|
||||
;;
|
||||
|
||||
(doom-modeline-def-segment global
|
||||
"For the time string and whatever uses global-mode-string."
|
||||
(when (< 0 (length global-mode-string))
|
||||
'(" " global-mode-string)))
|
||||
|
||||
;;
|
||||
;; Mode lines
|
||||
;;
|
||||
|
||||
(doom-modeline-def-modeline main
|
||||
(workspace-number window-number bar matches " " buffer-info " %l:%c %p " selection-info)
|
||||
(buffer-encoding major-mode vcs flycheck))
|
||||
(buffer-encoding major-mode vcs flycheck global))
|
||||
|
||||
(doom-modeline-def-modeline minimal
|
||||
(bar matches " " buffer-info)
|
||||
|
@ -1026,15 +1035,15 @@ enabled."
|
|||
|
||||
(doom-modeline-def-modeline special
|
||||
(window-number bar matches " " buffer-info-simple " %l:%c %p " selection-info)
|
||||
(buffer-encoding major-mode flycheck))
|
||||
(buffer-encoding major-mode flycheck global))
|
||||
|
||||
(doom-modeline-def-modeline project
|
||||
(window-number bar buffer-default-directory)
|
||||
(major-mode))
|
||||
(major-mode global))
|
||||
|
||||
(doom-modeline-def-modeline media
|
||||
(window-number bar " %b ")
|
||||
(media-info major-mode))
|
||||
(media-info major-mode global))
|
||||
|
||||
;;
|
||||
;; Hooks
|
||||
|
|
Loading…
Reference in a new issue