From 361f29e2cf18fe0fce50f336af4dfa3c12812c47 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Wed, 9 Jan 2019 05:10:53 +0800 Subject: [PATCH] Only display nyan and parrot in active windows. --- doom-modeline.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/doom-modeline.el b/doom-modeline.el index 8ee4b74..181d11f 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -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) " "))) ;;