about summary refs log tree commit diff stats
path: root/lisp
diff options
context:
space:
mode:
authorCase Duckworth2021-09-03 21:49:48 -0500
committerCase Duckworth2021-09-03 21:49:48 -0500
commit9b1789697d0afd39dae003ca800bab0db73de05b (patch)
tree7de05a4f34a8e6fc7771851aaf165a7c97285e1e /lisp
parentBind C-h m to which-key-show-major-mode (diff)
downloademacs-9b1789697d0afd39dae003ca800bab0db73de05b.tar.gz
emacs-9b1789697d0afd39dae003ca800bab0db73de05b.zip
Big refactor
Diffstat (limited to 'lisp')
-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."