From c2f5e41722e7c0ef3197fc6a369718191a4ffb9f Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 22 Oct 2022 21:33:13 +0200 Subject: [PATCH] tweak(window-select): winum-auto-setup-mode-line = nil Leave it to modeline modules, plugins, and/or the user to support this plugin, rather than impose winum's (rather destructive) side-effects on them all. --- modules/ui/window-select/config.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/ui/window-select/config.el b/modules/ui/window-select/config.el index 12dbe280e..35a13f07b 100644 --- a/modules/ui/window-select/config.el +++ b/modules/ui/window-select/config.el @@ -26,6 +26,9 @@ :after-call doom-switch-window-hook :config (winum-mode +1) + ;; winum modifies `mode-line-format' in a destructive manner. I'd rather leave + ;; it to modeline plugins (or the user) to add this if they want it. + (setq winum-auto-setup-mode-line nil) (map! :map evil-window-map "0" #'winum-select-window-0-or-10 "1" #'winum-select-window-1