Merge branch 'fix/global-mode-string' into 'master'
Fix global-mode-string handling See merge request jessieh/mood-line!3
This commit is contained in:
commit
29ba637959
@ -262,9 +262,9 @@
|
|||||||
|
|
||||||
(defun mood-line-segment-global-mode-string ()
|
(defun mood-line-segment-global-mode-string ()
|
||||||
"Displays the current value of `global-mode-string' in the mode-line."
|
"Displays the current value of `global-mode-string' in the mode-line."
|
||||||
(when (not (string= (mapconcat 'concat (mapcar 'eval global-mode-string) "") ""))
|
(let ((global (format-mode-line global-mode-string 'mood-line-status-grayed-out)))
|
||||||
(propertize "%M "
|
(unless (string-empty-p global)
|
||||||
'face 'mood-line-status-grayed-out)))
|
(concat global " "))))
|
||||||
|
|
||||||
(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)."
|
||||||
|
Loading…
Reference in New Issue
Block a user