Open derinsh0 opened 2 years ago
Okay I have realized the problem (partly).
The issue is that all-the-icons assigns the file-icon xE296 to the buffer, but not the font-family. Running (all-the-icons-icon-family-for-mode major-mode)
gives nil in spacemacs-buffer, even though it will try to give you the icon when you run "icon-for-mode".
I manually added spacemacs-buffer-mode to all-the-icons-mode-icon-alist
in all-the-icons.el and the icon is showing.
But I consider this a bug. If all-the-icons insists on a file icon, it should also insist on the file-icons font.
Sounds good, care to open a PR?
For some reason, file-icons font will not show sometimes. xE296 is the icon for emacs. In emacs-lisp-mode it will show up fine. In spacemacs home-buffer it will not. In apropos and some assorted help buffers it will not.
There are two emacs icons for some reason, one called "elisp" the other "emacs" with identical hex. When doing describe-char on either of them, on the second line the first character is unrendered but the character in (displayed as ..) is visible.
In ielm,
(all-the-icons-insert-icons-for 'fileicon)
will give you a list of working icons in your input field, but when you send it for evaluation the printed list has many non-working icons.all-the-icons-icon-for-file
andall-the-icons-icon-for-mode
will return unrendered icons as well in the minibuffer or ielm.I have taken screenshots of ielm, first as input to repl, then as a returned output.