From 3d3c5c36c523fce2402e1e1841f8dfc16189c6fb Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Wed, 24 Oct 2018 16:23:07 +0800 Subject: [PATCH] Support window numbers of ace-window-display-mode. --- doom-modeline.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doom-modeline.el b/doom-modeline.el index ddde650..727feaa 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -972,6 +972,11 @@ with `evil-ex-substitute', and/or 4. The number of active `iedit' regions." (doom-modeline-def-segment window-number (setq winum-auto-setup-mode-line nil) (let ((num (cond + ((bound-and-true-p ace-window-display-mode) + (setq mode-line-format + (assq-delete-all 'ace-window-display-mode + (default-value 'mode-line-format))) + (window-parameter (selected-window) 'ace-window-path)) ((bound-and-true-p winum-mode) (winum-get-number-string)) ((bound-and-true-p window-numbering-mode)