From 6d9020c428acf686a2629b9080087e6a243d2157 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Thu, 25 Oct 2018 00:56:09 +0800 Subject: [PATCH] Refactor: window numbers of winum. --- doom-modeline.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doom-modeline.el b/doom-modeline.el index efae74c..bb30110 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -972,7 +972,6 @@ with `evil-ex-substitute', and/or 4. The number of active `iedit' regions." (advice-add #'winum--clear-mode-line :override #'ignore) (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 @@ -980,6 +979,7 @@ with `evil-ex-substitute', and/or 4. The number of active `iedit' regions." (default-value 'mode-line-format))) (window-parameter (selected-window) 'ace-window-path)) ((bound-and-true-p winum-mode) + (setq winum-auto-setup-mode-line nil) (winum-get-number-string)) ((bound-and-true-p window-numbering-mode) (window-numbering-get-number-string))