From 9b1789697d0afd39dae003ca800bab0db73de05b Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Fri, 3 Sep 2021 21:49:48 -0500 Subject: Big refactor --- lisp/acdw-modeline.el | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lisp') diff --git a/lisp/acdw-modeline.el b/lisp/acdw-modeline.el index 44bb889..5aa0a18 100644 --- a/lisp/acdw-modeline.el +++ b/lisp/acdw-modeline.el @@ -173,6 +173,11 @@ is, if point < mark." (if-let ((backend (vc-backend buffer-file-name))) (substring vc-mode (+ (if (eq backend 'Hg) 2 3) 2)))) +(defun acdw-modeline/wc () + "Display current `wc-buffer-stats'." + (when (bound-and-true-p wc-mode) + (or wc-buffer-stats "[w]"))) + (defun acdw-modeline/winum () "Show the `winum' number of the current window in the modeline. Only shows if there is more than one window." -- cgit 1.4.1-21-gabe81