Treemacs, great tools, I like!
when I set:
elisp
(defvar treemacs-custom-snakemake-icon (all-the-icons-icon-for-file "images/snakemake.png"))
(treemacs-define-custom-icon treemacs-custom-snakemake-icon "smk" "snakefiles")


As shown in the figure above, the snakemake icon is not displayed correctly.
Can you help? Very much looking forward to your reply
Thanks~
The code you are using is working exactly as designed. all-the-icons-icon-for-file looks at the extension of the string you give it - in your case that ".png". So treemacs correctly shows all your .smk file with an image icon.
Using custom icons with images wasn't possible yet, I've just added the command for it, so you have to update. The code you need looks like this:
(treemacs-define-custom-image-icon "/path/to/your/icon.png" "smk" "snakefiles")
Note that treemacs expects icons to be exactly 22x22 pixels large.

Good work, thanks very much~
Most helpful comment
The code you are using is working exactly as designed.
all-the-icons-icon-for-filelooks at the extension of the string you give it - in your case that ".png". So treemacs correctly shows all your .smk file with an image icon.Using custom icons with images wasn't possible yet, I've just added the command for it, so you have to update. The code you need looks like this:
Note that treemacs expects icons to be exactly 22x22 pixels large.