Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

How to set the modeline for unfocused windows #763

Open
ST-Saint opened this issue Feb 23, 2025 · 1 comment
Open

How to set the modeline for unfocused windows #763

ST-Saint opened this issue Feb 23, 2025 · 1 comment

Comments

@ST-Saint
Copy link

I added my customized modeline but I found the modelines in unfocused windows do not respect any modeline definition.

Image

I wonder if we can force the unfocused windows to follow the same modeline?

config:

(use-package doom-modeline
  :ensure t
  :init (doom-modeline-mode t)
  :config
  (setq doom-modeline-project-detection 'project)
  (setq doom-modeline-buffer-file-name-style 'truncate-with-project)
  (setq doom-modeline-display-default-persp-name t)
  (doom-modeline-def-modeline 'miao
   '(eldoc bar window-number persp-name modals matches follow buffer-info remote-host buffer-position word-count selection-info)
   '(compilation objed-state misc-info battery grip irc mu4e gnus github debug repl lsp minor-modes input-method indent-info buffer-encoding major-mode process vcs check time))
  (doom-modeline-set-modeline 'miao 'default)
  (setq doom-modeline-mode-alist nil))
@seagle0128
Copy link
Owner

seagle0128 commented Feb 23, 2025

Add this to your config:

      (dolist (buf (buffer-list))
          (with-current-buffer buf
              (doom-modeline-set-modeline 'miao 'default)))

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants