From bd36eb9a98737c40c99ce72b2e3fb81541744b64 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Tue, 14 Aug 2018 15:40:13 +0800 Subject: [PATCH] Only show vcs and flycheck states in current window. --- doom-modeline.el | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/doom-modeline.el b/doom-modeline.el index 32315a3..2b81ce3 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -690,7 +690,9 @@ directory, the file name, and its state (modified, read-only or non-existent)." (doom-modeline-def-segment vcs "Displays the current branch, colored based on its state." - doom-modeline--vcs) + (if (doom-modeline--active) + doom-modeline--vcs + "")) ;; @@ -736,7 +738,9 @@ Uses `all-the-icons-material' to fetch the icon." (doom-modeline-def-segment flycheck "Displays color-coded flycheck error status in the current buffer with pretty icons." - doom-modeline--flycheck) + (if (doom-modeline--active) + doom-modeline--flycheck + "")) ;;