-
Notifications
You must be signed in to change notification settings - Fork 159
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
strange modeline height after buffer content changed #278
Comments
Emacs version? What I can see is the buffer state icon is incorrect in screenshot 2. |
26.3 |
What's the font are you using? Please check why the icons are incorrect in your env. |
According to information I have got now, I don't think it's an issue related directly to the configuration (e.g. font) of other part of emacs. Because just as I mentioned in the first post, if I downgrade doom-modeline to older version, it works fine. (refer to the screenshot) I don't know how to check the actual font is used by doom-modeline, any hint? |
I couldn't reproduce this issue. Can you reproduce it with |
I found it's conflicting with https://github.com/tumashu/cnfonts which is a font configuration tool for Chinese fonts. cnfonts changed the default font setting and I think which is used by doom-modeline. My thinking is if the display in the mode line is controlled by a face (I am not sure which one) then I can specify the font explicit for it (I am not sure which font should be either) Any hint? |
This issue was reported to cnfonts long time ago. Please refer to tumashu/cnfonts#98. My suggestion is NOT using |
for whom using cnfonts and doom-modeline(all-the-icons) together, we have a simple solution to make them coexist. Just configure your cnfonts in the following way. (use-package cnfonts
:ensure t
:after all-the-icons
:hook (cnfonts-set-font-finish
. (lambda (fontsizes-list)
(set-fontset-font t 'unicode (font-spec :family "all-the-icons") nil 'append)
(set-fontset-font t 'unicode (font-spec :family "file-icons") nil 'append)
(set-fontset-font t 'unicode (font-spec :family "Material Icons") nil 'append)
(set-fontset-font t 'unicode (font-spec :family "github-octicons") nil 'append)
(set-fontset-font t 'unicode (font-spec :family "FontAwesome") nil 'append)
(set-fontset-font t 'unicode (font-spec :family "Weather Icons") nil 'append)))
:config
(cnfonts-enable)) |
Thanks for the update, @hekinami ! |
by 2020/09/10, cnfonts and all-the-icons have seemingly already solved conflict with each other, I can tested in emacs 27 with following configure, and it works well for me. We don't have to specify the fonts for unicode characters ourselves any more. (use-package cnfonts
:ensure t
:config
(cnfonts-enable))
(use-package all-the-icons
:ensure t
:after cnfonts
) |
Thanks, @hekinami . Although I don't see any changes for all-the-icons in cnfonts. Maybe just because you change the loading sequence? |
Not sure, but I used the same configuration for emacs 26.3 and 27.1, and likely they don't work in the same way. Anyway, if someone else still report the same issue, let's discuss then. |
Describe
A clear and concise description of what the bug is.
while content of buffer changed, the modeline height was doubleld and that is strange.
I installed doom-modeline with package.el with newest package (20191209.1736) and the issue occurred.
If I downgraded to a old one (e.g. doom-modeline-20191029.1741.tar) it works in the correct way.
Steps and Expected
Steps to reproduce the behavior:
A clear and concise description of what you expected to happen.
just open a file and change it.
Environment:
Additional context

Screenshots, recordings, logs and/or messages...
The text was updated successfully, but these errors were encountered: