ryuslash / mode-icons

Show icons instead of mode names
http://projects.ryuslash.org/mode-icons/
159 stars 28 forks source link

use of emoji in mode-icons #20

Closed rhoit closed 8 years ago

rhoit commented 8 years ago

I think it will be great to use emoji :stuck_out_tongue_winking_eye: in mode icon!

Since its beyond my lisp skills :disappointed:, just want to bring up :bulb: the idea.

screenshot39

Still thinking about what would be great icon for emojfy mode.

http://www.emoji-cheat-sheet.com/

mattfidler commented 8 years ago

You would have to enrich the mode line to add an icon for emojify-mode, since it doesn't have a lighter.

mattfidler commented 8 years ago

Emoji are also PNG files, which can't be viewed on vanilla windows emacs.

mattfidler commented 8 years ago

Its been added.

mattfidler commented 8 years ago

Now gimp will convert the png files to xpm files in emacs. Since it takes so long to start gimp and run in batch mode, gimp is started in a command mode. Conversion commands are cached and sent to the gimp scheme command prompt once it is ready. After 120 seconds of inactivity, the gimp command prompt is exited. The xpm is saved in the mode-icons directory.

Therefore the :palm_tree: can be displayed as greyscale in emacs:

image

@ryuslash are you familiar with emacs processes? I'm worried about having the gimp inferior process hanging out while someone tries to kill emacs.

This does open up possibilities of adding text-based icons, like making the text engraved:

http://gimp-tutorials.net/How-to-Engrave-Text-in-Gimp

All scripted in gimp. This seems a bit out of scope for this project, but it is interesting. I personally didn't know that gimp had a command prompt mode, I discovered it when trying to run batch commands.

mattfidler commented 8 years ago

I changed :herb: to :palm_tree: for Undo-Tree. The icon on my system seemed a bit better.

rhoit commented 8 years ago

works like the charm!

ryuslash commented 8 years ago

@mattfidler: Sorry I don't really know much about Emacs processes. What exactly are you worried will happen?

mattfidler commented 8 years ago

That I cant kill it before emacs is trying to quit:

image

It could be a real annoyance.