summary refs log tree commit diff stats
path: root/lisp
diff options
context:
space:
mode:
authorCase Duckworth2021-05-03 15:12:44 -0500
committerCase Duckworth2021-05-03 15:14:23 -0500
commitddda04e26f3fc8bec0a82704dbbbf8ac352dce8e (patch)
tree757191050b2946b171d09d60a8cc42af6982401a /lisp
parentAdd `idle-require' (diff)
downloademacs-ddda04e26f3fc8bec0a82704dbbbf8ac352dce8e.tar.gz
emacs-ddda04e26f3fc8bec0a82704dbbbf8ac352dce8e.zip
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].
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 7eca143..81b808d 100644 --- a/lisp/acdw-modeline.el +++ b/lisp/acdw-modeline.el
@@ -88,4 +88,9 @@ indicator in the mode-line."
88 (if-let ((backend (vc-backend buffer-file-name))) 88 (if-let ((backend (vc-backend buffer-file-name)))
89 (substring vc-mode (+ (if (eq backend 'Hg) 2 3) 2)))) 89 (substring vc-mode (+ (if (eq backend 'Hg) 2 3) 2))))
90 90
91(defun acdw-modeline/winum ()
92 (when (and (bound-and-true-p winum-mode)
93 (> winum--window-count 1))
94 (format winum-format (winum-get-number-string))))
95
91(provide 'acdw-modeline) 96(provide 'acdw-modeline)