about summary refs log tree commit diff stats
path: root/lisp/acdw-modeline.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/acdw-modeline.el')
-rw-r--r--lisp/acdw-modeline.el5
1 files changed, 5 insertions, 0 deletions
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."
173 (if-let ((backend (vc-backend buffer-file-name))) 173 (if-let ((backend (vc-backend buffer-file-name)))
174 (substring vc-mode (+ (if (eq backend 'Hg) 2 3) 2)))) 174 (substring vc-mode (+ (if (eq backend 'Hg) 2 3) 2))))
175 175
176(defun acdw-modeline/wc ()
177 "Display current `wc-buffer-stats'."
178 (when (bound-and-true-p wc-mode)
179 (or wc-buffer-stats "[w]")))
180
176(defun acdw-modeline/winum () 181(defun acdw-modeline/winum ()
177 "Show the `winum' number of the current window in the modeline. 182 "Show the `winum' number of the current window in the modeline.
178Only shows if there is more than one window." 183Only shows if there is more than one window."