Giter Site home page Giter Site logo

Comments (4)

iqbalansari avatar iqbalansari commented on May 26, 2024

Hi @matthew-piziak,

If you control the code calling message then this is trivial, basically you will have to do something like

(message (emojify-string "<emoji>"))

instead of

(message "<emoji>")

However making this work in general might need a bit more work, will look into this.

from emacs-emojify.

matthew-piziak avatar matthew-piziak commented on May 26, 2024

Strange, if I do (message (emojify-string "<C-x 8 RET SNOWFLAKE>")) then I just get the literal #("❄" 0 1 (emojified t emojify-display (image :type png :file "/home/matt/.emacs.d/emojis/emojione-v2.2.6-22/2744.png" :ascent center :heuristic-mask t :background "#F0FFF0" :scale ...) display (image :type png :file "/home/matt/.emacs.d/emojis/emojione-v2.2.6-22/2744.png" :ascent center :heuristic-mask t :background "#F0FFF0" :scale ...) emojify-text "❄")) in the message buffer. It's clear that the emoji picture is downloaded, but it doesn't display.

from emacs-emojify.

iqbalansari avatar iqbalansari commented on May 26, 2024

Actually when you evaluate something in Emacs (using C-xC-e) the return value is echoed in the minibuffer. message returns the string that was echoed in this case as a literal string.

Do something like the following, this should display the message correctly

(run-at-time 1.0 nil (lambda () (message (emojify-string "This is a test ❄"))))

from emacs-emojify.

matthew-piziak avatar matthew-piziak commented on May 26, 2024

Oh that totally works. Thank you so much!

from emacs-emojify.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.