Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

fix(window-select): load winum earlier #7848

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

LemonBreezes
Copy link
Contributor

This is so that a user can use winum-auto-setup-mode-line with value t. Since that modifies the default mode line, the entire package needs to be loaded very early for that option to be available to a user.

This is cheaper and better than mapping over every buffer and modifying their buffer-local value for mode-line-format.

Also, I disagree with that comment in the sense that modifying mode-line-format is not important at all since it is done correctly. The issue to me is that since it modifies the default value of mode-line-format, the package should be loaded early for all buffers to have that mode-line segment.

This is so that a user can use `winum-auto-setup-mode-line` with value
`t`. Since that modifies the default mode line, the entire package needs
to be loaded very early for that option to be available to a user.

This is cheaper and better than mapping over every buffer and modifying
their buffer-local value for mode-line-format.
@LemonBreezes LemonBreezes marked this pull request as ready for review April 26, 2024 02:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant