From ddda04e26f3fc8bec0a82704dbbbf8ac352dce8e Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Mon, 3 May 2021 15:12:44 -0500 Subject: Add `winum' I only rebind winum-select-window-* in graphical buffers because that's apparently the only place where C-[n] is the same as M-[n]. --- lisp/acdw-modeline.el | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lisp/acdw-modeline.el') diff --git a/lisp/acdw-modeline.el b/lisp/acdw-modeline.el index 7eca143..81b808d 100644 --- a/lisp/acdw-modeline.el +++ b/lisp/acdw-modeline.el @@ -88,4 +88,9 @@ indicator in the mode-line." (if-let ((backend (vc-backend buffer-file-name))) (substring vc-mode (+ (if (eq backend 'Hg) 2 3) 2)))) +(defun acdw-modeline/winum () + (when (and (bound-and-true-p winum-mode) + (> winum--window-count 1)) + (format winum-format (winum-get-number-string)))) + (provide 'acdw-modeline) -- cgit 1.4.1-21-gabe81