Open utkarsh-singh07 opened 1 year ago
This is a problem because you are using both all-the-icons
Fonts and Nerd Fonts at the same time, which is usually not recommended because some of their unicode symbols have conflict.
If you think Nerd Fonts are more important in your system, it is more elegant to choose packages that use Nerd Fonts, such as nerd-icons-dired
.
If you still want to keep Emacs at all-the-icons
fonts, I think it might be possible to configure the fonts by using fontconfig. For example:
<match target="pattern">
<match target="pattern">
<test name="prgname" compare="eq">
<string>emacs</string>
</test>
<test name="family" compare="contains">
<string>Nerd Font</string> <!-- may need to be replace with your real font, e.g. SaourceCodePro Nerd Font, BlexMono Nerd Font -->
</test>
<edit name="family" mode="prepend" binding="strong">
<string>file-icons</string>
</edit>
</match>
</match>
I'm not sure this will fix all the problems you are encountering. all-the-icons
includes different fonts and you'll need to test which of them needs to be prioritized.
In particular, I'm assuming that you don't want the new changes to affect fonts in other environments, such as the shell.
I don't think this is the final/correct solution, but a possible interim fix.
By the way, this project has been taken over due to lack of maintenance, you should create issues on wyuenho/all-the-icons-dired. I just forgot to unwatch this repository.
I have been using fedora for quite a time and recently i have switched to opensuse-tumbleweed and I have came across this error where I did not have the icons in dired as it was on fedora. I have also installed nerd-fonts .