mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-27 19:19:53 +00:00
Merge pull request #131 from yqrashawn/revert-pr-130
Revert "fix mu4e-alert-mode-line numberp error"
This commit is contained in:
commit
94d78707a2
1 changed files with 20 additions and 22 deletions
|
@ -1586,9 +1586,7 @@ mouse-1: Toggle Debug on Quit"
|
||||||
(doom-modeline--active)
|
(doom-modeline--active)
|
||||||
(bound-and-true-p mu4e-alert-mode-line))
|
(bound-and-true-p mu4e-alert-mode-line))
|
||||||
;; don't display if the unread mails count is zero
|
;; don't display if the unread mails count is zero
|
||||||
(mu4e-alert--get-mu-unread-mails
|
(if (> mu4e-alert-mode-line 0)
|
||||||
(lambda (mails)
|
|
||||||
(if (> (length mails) 0)
|
|
||||||
(concat
|
(concat
|
||||||
" "
|
" "
|
||||||
(propertize
|
(propertize
|
||||||
|
@ -1601,13 +1599,13 @@ mouse-1: Toggle Debug on Quit"
|
||||||
(propertize "#"
|
(propertize "#"
|
||||||
'face '(:inherit (doom-modeline-warning doom-modeline-unread-number))))
|
'face '(:inherit (doom-modeline-warning doom-modeline-unread-number))))
|
||||||
doom-modeline-vspc
|
doom-modeline-vspc
|
||||||
(propertize (length mails)
|
(propertize (number-to-string mu4e-alert-mode-line)
|
||||||
'face '(:inherit (doom-modeline-warning doom-modeline-unread-number))))
|
'face '(:inherit (doom-modeline-warning doom-modeline-unread-number))))
|
||||||
'mouse-face '(:box 0)
|
'mouse-face '(:box 0)
|
||||||
'help-echo (if (= mu4e-alert-mode-line 1)
|
'help-echo (if (= mu4e-alert-mode-line 1)
|
||||||
"You have an unread email"
|
"You have an unread email"
|
||||||
(format "You have %s unread emails" mu4e-alert-mode-line)))
|
(format "You have %s unread emails" mu4e-alert-mode-line)))
|
||||||
" "))))))
|
" "))))
|
||||||
|
|
||||||
(defun doom-modeline-override-mu4e-alert-modeline (&rest _)
|
(defun doom-modeline-override-mu4e-alert-modeline (&rest _)
|
||||||
"Delete `mu4e-alert-mode-line' from global modeline string."
|
"Delete `mu4e-alert-mode-line' from global modeline string."
|
||||||
|
|
Loading…
Reference in a new issue