-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Emojify source code #10
Comments
I agree with @ryanprior's suggestion, @cpitclaudel what do you think? |
Works for me! Sorry for opening a duplicate. I like @ryanprior's suggestion. |
I can't picture wanting emojification of ascii or fenced styles in source code for anything except comments and maaaaybe strings. Is that reasonable? Do you see somebody wanting to legitimately name a variable I do expect to see people increasingly use emoji in source code, but I picture Unicode and extensions like prettify-symbols as the preferred ways of accomplishing that. |
No, not really.
I sometimes use prettify-symbols-mode to display the For me this package is superior to prettify-symbols for certain use cases, as it allows me to prettify a string into an image, instead of prettifying it into a Unicode character. If Emacs had support for displaying color Emojis embedded in a font all would be good for me, but it doesn't on Linux, so this package definitely fills a gap. |
@ryanprior, @cpitclaudel I have pushed some changes to master which make this possible. Please do try it out when MELPA builds and report back problems if any. Thanks |
Just curious if there's a way to enable github styles emojis in code outside of strings? For example, I'd like to be able to use my scratch buffer to test out different emojis, but it only renders github style emojis when their in a string. Seeing as |
Some languages such as Javascript, Swift, PHP and Java allow Unicode emoji outside of comments and strings. You might see code like this:
Those should be emojified. We could fix this by making
emojify-prog-contexts
restrictions apply only to ASCII- and github-style emojis.The text was updated successfully, but these errors were encountered: