From a7a31dead0277b88e84bb7ee56d13a0fd50336ac Mon Sep 17 00:00:00 2001 From: Artur Manuel Date: Wed, 16 Apr 2025 20:43:16 +0100 Subject: [PATCH] doom-modeline: change hook to fix modeline odditites I was using the wrong hook the entire time and I only realised this now. I saw this in the hooks documentation and I tried it out only to have it work on the first turn. Truly incredible. --- config/config-ui.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/config/config-ui.el b/config/config-ui.el index dacdc21..57a05cb 100644 --- a/config/config-ui.el +++ b/config/config-ui.el @@ -5,16 +5,17 @@ (defun my/doom-modeline-for-new-frames (&optional frame) (setq doom-modeline-height (+ (frame-char-height) 8)) (with-selected-frame (or frame (selected-frame)) - (doom-modeline-refresh-bars))) + (doom-modeline-mode 1))) (use-package doom-modeline :defer t :commands (doom-modeline-mode) :custom - (doom-modeline-mode t) + (doom-modeline-mode (not (daemonp))) (doom-modeline-env-load-string "") - (doom-modeline-height (+ (frame-char-height) 8)) - :hook (after-make-frame-functions . my/doom-modeline-for-new-frames)) + :hook ((server-after-make-frame) . my/doom-modeline-for-new-frames) + ;; ^^^^^^^^^^^^^^^^^^^^^^^ this hook is my goat + ) (use-package base16-theme :config