mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-27 11:09:52 +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))
|
(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
|
;; Mode lines
|
||||||
;;
|
;;
|
||||||
|
|
||||||
(doom-modeline-def-modeline main
|
(doom-modeline-def-modeline main
|
||||||
(workspace-number window-number bar matches " " buffer-info " %l:%c %p " selection-info)
|
(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
|
(doom-modeline-def-modeline minimal
|
||||||
(bar matches " " buffer-info)
|
(bar matches " " buffer-info)
|
||||||
|
@ -1026,15 +1035,15 @@ enabled."
|
||||||
|
|
||||||
(doom-modeline-def-modeline special
|
(doom-modeline-def-modeline special
|
||||||
(window-number bar matches " " buffer-info-simple " %l:%c %p " selection-info)
|
(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
|
(doom-modeline-def-modeline project
|
||||||
(window-number bar buffer-default-directory)
|
(window-number bar buffer-default-directory)
|
||||||
(major-mode))
|
(major-mode global))
|
||||||
|
|
||||||
(doom-modeline-def-modeline media
|
(doom-modeline-def-modeline media
|
||||||
(window-number bar " %b ")
|
(window-number bar " %b ")
|
||||||
(media-info major-mode))
|
(media-info major-mode global))
|
||||||
|
|
||||||
;;
|
;;
|
||||||
;; Hooks
|
;; Hooks
|
||||||
|
|
Loading…
Reference in a new issue