Comments (20)
I cannot access the image. Can you attach the image directly?
Well, I guess the issue is caused by fonts. Did you install all-in-icons
fonts?
This package requires the fonts included with all-the-icons to be installed. Run M-x all-the-icons-install-fonts to do so.
from doom-modeline.
Yeah I installed all-the-icons
through emacs. Here's the embedded image:
Thanks!
from doom-modeline.
Thanks for providing the embedded image to troubleshooting!
I couldn't reproduce this issue locally.
Would you please let me know more details?
- OS
- Emacs version
doom-modeline
version- Color theme
- Emacs fonts
- Any error messages?
- Other clues.
I suggest to upgrade doom-modeline
to the latest version, set doom-modeline-height
, e.g. (setq doom-modeline-height 26)
.
Or set different fonts (I recommend Source Code Pro
), and observe the changes.
from doom-modeline.
- Arch Linux -
4.18.9-arch1-1-ARCH
- 27.0.50
20180926.920
- Custom theme
Fira Mono
andFira Code
for the fallback.- No error messages.
- No sorry :(
I have the latest version from MELPA and i've tried doom-modeline-height but regardless of what I set it too it's always slightly bigger.
I'll try out some different fonts.
from doom-modeline.
Thanks for the quick response!
It's very wired. Please change the font size or change to other fonts.
I suspect the font is too large and exceed the mode-line height. To prove it, you can increase doom-modeline-height to 29 or larger, or decrease font size to 12 or smaller (I noticed you are using Fira 15).
from doom-modeline.
Or try this:
M-x eval-defun
(doom-modeline-def-modeline 'main
'(workspace-number window-number evil-state matches " " buffer-info buffer-position " " selection-info)
'(global buffer-encoding major-mode process vcs flycheck))
from doom-modeline.
I tried that elisp snippet and the same issue occurs. I also tried Fira 12 and mode-line height of 29 and the issue also occurred. Do you have a font I could try that you know works for sure?
from doom-modeline.
Would you please try Source Code Pro 12 cor DejaVu Sans Mono 12.
Actually I tried to recreate this issue with Fira 15 locally. I believe it's a font size issue. If you decrease the font size, it looks better. IMO it's not an issue, since the panel height is same as the font height. If you use this snippet, you could notice the bar is removed. The fact is the bar height (doom-modeline-height
) is smaller than the font height, as well as the panel height in this case.
(doom-modeline-def-modeline 'main
'(workspace-number window-number evil-state matches " " buffer-info buffer-position " " selection-info)
'(global buffer-encoding major-mode process vcs flycheck)
from doom-modeline.
This is the result if I swap the font to DejaVu Sans Mono 12
.
from doom-modeline.
@WolfeCub can you try DejaVu Sans Mono 10 or 9?
BTW: why there is no window-number panel and evil indicator in the screenshot?
from doom-modeline.
This is with DejaVu 9:
The evil indicator I have disabled. I'm not sure about the window number panel. That never showed up for me.
from doom-modeline.
OK. I see. You didn't enable winum-mode
or window-numbering-mode
.
Can you eval this snippet to get the height of mode-line
? I suppose it's greater than doom-modeline-height
.
(- (elt (window-pixel-edges) 3)
(elt (window-inside-pixel-edges) 3))
And please use (setq doom-modeline-height 29)
to check the looks.
from doom-modeline.
So when I start emacs doom-modeline_height
is 23 and that snippet evals to 34. If I run (setq doom-modeline-height 29)
and re-eval that snippet it evals to 36. Repeating one more time and running (setq doom-modeline-height 36)
the snippet evals to 39.
from doom-modeline.
So the actual mode-line height is greater than doom-modeline-height since the different font size. Evals (frame-char-height)
to get it..
This is as designed, and it's native behaviors of mode-line.
You can let doom-modeline-height >= mode-line height after specifying the font. I believe it can address this issue.
from doom-modeline.
I think I found a workaround to adjust the bars height and make the mode-line look better.
from doom-modeline.
Great! Thanks for your help.
from doom-modeline.
One other thing I noticed was the box get's taller when there's 0/0 results then when it's matching something.
from doom-modeline.
Hi,
I cannot reproduce with the latest version. Please update and retry.
In your case, I also suggest (setq doom-modeline-height 39)
. The panel height exactly equals actual mode-line height. Thus means bar height <= mode-line height == panel height.
from doom-modeline.
That was with the latest version. Setting a height of 39 works perfectly actually. Would there be a good way to determine this number problematically so it adjusts when I change font?
from doom-modeline.
I made a several commits and please update again. I'm not sure if it's perfect but deserves to try.
It works very well on my laptop (Emacs 26.1, macOS Mojave).
from doom-modeline.
Related Issues (20)
- [Bug] need update for latest jsonrpc accessor change: `jsonrpc--request-continuations` HOT 9
- [Feature Request] Support for Flycheck-status-emoji HOT 4
- Error using with latest eglot / jsonrpc packages HOT 4
- Can the 'which-function' be disabled? HOT 2
- [Bug] buffer-position formatting won't respect flags in format specifier for column HOT 4
- [Bug] Lightbulb symbol 01F4A1 not displaying in mode line HOT 3
- [Feature Request] display-all-git-branches HOT 2
- [Bug] Icons on modeline lack sufficient padding HOT 14
- [Bug] modeline fragments do not get updated correctly when a command that changes the current-buffer is running HOT 3
- [Bug] HOT 3
- [Bug] Setting a left window margin clips the modeline on the right HOT 4
- [Bug] Compiler warnings after 311a0c5 HOT 1
- Fix the few faces that don't inherit from doom-modeline HOT 1
- Symbol’s function definition is void: doom-modeline-check-icon HOT 4
- [Bug] Typo in commit 3f1d33a
- Differentiate error states for checker segment HOT 1
- [Bug] Error during redisplay HOT 1
- [Bug] Reference to free variable `keel-menu-map' after 1d0942d HOT 2
- [Feature Request] new doom-modeline-buffer-file-name-style project-and-filename
- help-echo text not showing when in lsp-mode[Bug] HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from doom-modeline.