Open bestlem opened 3 years ago
all-the-icons-icon-for-mode and all-the-icons-family-for-mode do not use the same logic.
I found this on helpful-mode (via issues with spaceline-all-the-icons)
(all-the-icons-icon-family-for-mode 'helpful-mode) ; returns nil (all-the-icons-icon-for-mode 'helpful-mode) ; Gives an icon
The for mode code deals with the not found icon by looking in the parent mode ie
(icon (cdr (or (assoc mode all-the-icons-mode-icon-alist) (assoc (get mode 'derived-mode-parent) all-the-icons-mode-icon-alist))))
whilst all-the-icons-icon-family-for-mode just does the first assoc
Feel free to send over a PR
all-the-icons-icon-for-mode and all-the-icons-family-for-mode do not use the same logic.
I found this on helpful-mode (via issues with spaceline-all-the-icons)
The for mode code deals with the not found icon by looking in the parent mode ie
whilst all-the-icons-icon-family-for-mode just does the first assoc