domtronn / all-the-icons.el

A utility package to collect various Icon Fonts and propertize them within Emacs.
MIT License
1.46k stars 177 forks source link

Nonicons #285

Open sethen opened 2 years ago

sethen commented 2 years ago

There is a repository for icons that look like octicons but they are for programming languages over at: https://github.com/yamatsum/nonicons -- There is a TTF font that is included here: https://github.com/yamatsum/nonicons/tree/master/dist

Is it possible to add these to all-the-icons? I would make a PR myself if I had more of an idea of what I am doing.

mohkale commented 2 years ago

@sethen

It's honestly not that difficult. See here. You need to create an alist of code points that references every icon in the font, then call all-the-icons-define-icon.

Screenshot_20210928_170630

From then on you can reference the icon from any of the all-the-icons commands, call (all-the-icons-nonicon "icon-name") to get a glyph for it, etc. You may want to open a PR for this or you might want to create a separate package.