Last active
August 29, 2015 14:11
-
-
Save pjaspers/205cfcaee54b409145f1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun pjaspers-emoji-me() | |
"Takes a word and show in a temporary buffer all emoji matching that" | |
(interactive) | |
(let* ((wildcard-name (read-string "Enter string to look for: ")) | |
(all-known (ucs-names)) | |
(buffer-name (format "*emoji-me-%s*" wildcard-name)) | |
(results (remove-if-not (lambda(x) (let ((str (car x)))(string-match wildcard-name str))) all-known))) | |
(with-output-to-temp-buffer buffer-name | |
(print (mapconcat (function (lambda(x) (format "%s - %s" (car x) (char-to-string (cdr x))))) results "\n")) | |
(switch-to-buffer buffer-name)))) | |
CAT FACE - π± | |
CAT FACE WITH WRY SMILE - πΌ | |
GRINNING CAT FACE WITH SMILING EYES - πΈ | |
POUTING CAT FACE - πΎ | |
SMILING CAT FACE WITH OPEN MOUTH - πΊ | |
CAT FACE WITH TEARS OF JOY - πΉ | |
CRYING CAT FACE - πΏ | |
KISSING CAT FACE WITH CLOSED EYES - π½ | |
SMILING CAT FACE WITH HEART-SHAPED EYES - π» | |
WEARY CAT FACE - π |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment