Add new global-mode-string segment
This commit is contained in:
parent
b68f003b47
commit
0bfe3ab2b6
@ -249,6 +249,12 @@
|
|||||||
'bold
|
'bold
|
||||||
'mood-line-status-grayed-out)))
|
'mood-line-status-grayed-out)))
|
||||||
|
|
||||||
|
(defun mood-line-segment-global-mode-string ()
|
||||||
|
"Displays the current value of `global-mode-string' in the mode-line."
|
||||||
|
(when (not (string= (mapconcat 'concat (mapcar 'eval global-mode-string) "") ""))
|
||||||
|
(propertize "%M "
|
||||||
|
'face 'mood-line-status-grayed-out)))
|
||||||
|
|
||||||
(defun mood-line-segment-flycheck ()
|
(defun mood-line-segment-flycheck ()
|
||||||
"Displays color-coded flycheck information in the mode-line (if available)."
|
"Displays color-coded flycheck information in the mode-line (if available)."
|
||||||
mood-line--flycheck-text)
|
mood-line--flycheck-text)
|
||||||
@ -300,6 +306,7 @@
|
|||||||
(format-mode-line
|
(format-mode-line
|
||||||
'((:eval (mood-line-segment-vc))
|
'((:eval (mood-line-segment-vc))
|
||||||
(:eval (mood-line-segment-major-mode))
|
(:eval (mood-line-segment-major-mode))
|
||||||
|
(:eval (mood-line-segment-global-mode-string))
|
||||||
(:eval (mood-line-segment-flycheck))
|
(:eval (mood-line-segment-flycheck))
|
||||||
" ")))))))
|
" ")))))))
|
||||||
(progn
|
(progn
|
||||||
|
Loading…
Reference in New Issue
Block a user