diff options
author | Case Duckworth | 2021-05-03 15:12:44 -0500 |
---|---|---|
committer | Case Duckworth | 2021-05-03 15:14:23 -0500 |
commit | ddda04e26f3fc8bec0a82704dbbbf8ac352dce8e (patch) | |
tree | 757191050b2946b171d09d60a8cc42af6982401a /lisp | |
parent | Add `idle-require' (diff) | |
download | emacs-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.el | 5 |
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) |