From dc1284c5baa22cfb8e6895c221fdc2eee42318ad Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Thu, 12 Aug 2021 21:05:48 -0500 Subject: Only show wc mode-line in wc-mode --- init.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'init.el') diff --git a/init.el b/init.el index 7befda5..7e2c1ea 100644 --- a/init.el +++ b/init.el @@ -1511,7 +1511,8 @@ if ripgrep is installed, otherwise `consult-grep'." (defun acdw-modeline/wc () "Display current `wc-buffer-stats'." - (or wc-buffer-stats "[w]"))) + (when wc-mode + (or wc-buffer-stats "[w]")))) (setup (:straight web-mode) (:option css-level-offset 2 -- cgit 1.4.1-21-gabe81