-
Notifications
You must be signed in to change notification settings - Fork 176
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
all-the-icons--icon-info-for-buffer returns wrong icons #145
Comments
Yep, thid function is a bit of a pain, care to open a PR? |
@wyuenho Hmm... I tried some solutions locally and understood these codes completely. It seems a trade-off, but the most of the icons are appropriate. I'd like close it for now, and will reopen and submit a PR if I found a better solution. Thanks! |
Hello, I would like to revive this issue as I'm quite bothered by this bug. In particular, I'm using both Coq and Verilog languages and both of them share the same extension ".v". I believe the fix to the problem is to not check the major-mode against the auto-mode-alist, but rather some other association list generated from the |
Also see #275 |
all-the-icons.el/all-the-icons.el
Line 785 in f996faf
Hi, Thanks for this great package!
I found
all-the-icons-icon-for-buffer
returns wrong icons some times, then I reviewed the codes, and found the logic inall-the-icons--icon-info-for-buffer
may be incorrect. I don't understand why it callsall-the-icons-auto-mode-match?
. I think it should checkall-the-icons-mode-icon-alist
as you mentioned in #15 (comment).Besides, IMO
all-the-icons-mode-icon-alist
should not be###autoload
since it's an internal function, while should add toall-the-icons-icon-for-buffer
andall-the-icons-icon-for-dir
.The text was updated successfully, but these errors were encountered: