pankomacs/config/config-ui.el
Artur Manuel a7a31dead0
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.
2025-04-16 20:43:16 +01:00

24 lines
667 B
EmacsLisp

;; -*- lexical-binding: t -*-
(defun config-init-ui ()
(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-mode 1)))
(use-package doom-modeline
:defer t
:commands (doom-modeline-mode)
:custom
(doom-modeline-mode (not (daemonp)))
(doom-modeline-env-load-string "")
:hook ((server-after-make-frame) . my/doom-modeline-for-new-frames)
;; ^^^^^^^^^^^^^^^^^^^^^^^ this hook is my goat
)
(use-package base16-theme
:config
(load-theme 'base16-rose-pine t)))
(provide 'config-ui)