From c7251193bba0489fbdc06e1bd8c73bc20fcae68c Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Fri, 16 Nov 2018 01:45:52 +0800 Subject: [PATCH] Fix: flash window number while re-enabling `ace-window-display-mode`. --- doom-modeline.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/doom-modeline.el b/doom-modeline.el index 0c52231..3a388de 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -1036,9 +1036,10 @@ one. The ignored buffers are excluded unless `aw-ignore-on' is nil." (doom-modeline-def-segment window-number (let ((num (cond ((bound-and-true-p ace-window-display-mode) - (setq-default mode-line-format - (assq-delete-all 'ace-window-display-mode - (default-value 'mode-line-format))) + (setq mode-line-format + (assq-delete-all 'ace-window-display-mode + (default-value 'mode-line-format))) + (setq-default mode-line-format mode-line-format) (aw-update) (window-parameter (selected-window) 'ace-window-path)) ((bound-and-true-p winum-mode)