jtbm37 / all-the-icons-dired

Adds dired support to all-the-icons
GNU General Public License v3.0
197 stars 26 forks source link

Icon used for file is different than mode used for file extension #47

Open peterpolidoro opened 3 years ago

peterpolidoro commented 3 years ago

Hi. If I set a file extension to used a particular mode, the correct icon for that mode shows up in the modeline when a buffer is looking at that file. However when I look at the directory that contains that file in dired, the incorrect icon is used for that file. Is there a way to tell all-the-icons-dired to use the mode set for that file extension when selecting the icon?

For example, I set the file extension "\\.m\\" to use matlab-mode with use-package. The Matlab icon is then correctly shown in the modeline when I open a .m file. However when I look at the directory containing that file, an Apple icon is used for files with the .m extension. How can I make dired use the propery Matlab icon instead of the Apple icon for files with the .m extension?

Thanks!