Closed rhoit closed 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.
Emoji are also PNG files, which can't be viewed on vanilla windows emacs.
Its been added.
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:
@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.
I changed :herb: to :palm_tree: for Undo-Tree
. The icon on my system seemed a bit better.
works like the charm!
@mattfidler: Sorry I don't really know much about Emacs processes. What exactly are you worried will happen?
That I cant kill it before emacs is trying to quit:
It could be a real annoyance.
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.
Still thinking about what would be great icon for emojfy mode.
http://www.emoji-cheat-sheet.com/