mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-27 11:09:52 +00:00
Only display nyan and parrot in active windows.
This commit is contained in:
parent
5b66d86bd9
commit
361f29e2cf
1 changed files with 4 additions and 2 deletions
|
@ -1727,7 +1727,8 @@ See `mode-line-percent-position'.")
|
|||
(doom-modeline-column-zero-based " %l:%c" " %l:%C")
|
||||
" %l")
|
||||
(column-number-mode (doom-modeline-column-zero-based " :%c" " :%C")))))
|
||||
(if (bound-and-true-p nyan-mode)
|
||||
(if (and (bound-and-true-p nyan-mode)
|
||||
(doom-modeline--active))
|
||||
(concat " " (nyan-create) " "
|
||||
(propertize (format-mode-line lc)
|
||||
'help-echo "Buffer position\n\
|
||||
|
@ -1748,7 +1749,8 @@ mouse-1: Display Line and Column Mode Menu"
|
|||
;;
|
||||
(doom-modeline-def-segment parrot
|
||||
"The party parrot animated icon. Requires `parrot-mode' to be enabled."
|
||||
(when (bound-and-true-p parrot-mode)
|
||||
(when (and (bound-and-true-p parrot-mode)
|
||||
(doom-modeline--active))
|
||||
(concat " " (parrot-create) " ")))
|
||||
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue