Created
September 26, 2019 16:58
-
-
Save wpcarro/7a56d6aa322b41eacff2a87b55144fdb to your computer and use it in GitHub Desktop.
Quickly copy kaomojis onto your system clipboard.
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
| ;;; kaomoji.el --- Supporting kaomoji usage -*- lexical-binding: t -*- | |
| ;; Author: William Carroll <[email protected]> | |
| ;;; Commentary: | |
| ;; Simple keyboards like this make life a bit better. | |
| ;;; Code: | |
| (defconst symbols '(("Joy" . "(⌒‿⌒)") | |
| ("Love" . "(ღ˘⌣˘ღ)") | |
| ("Sympathy" . "ヽ(~_~(・_・ )ゝ") | |
| ("Dissatisfaction" . "(>﹏<)") | |
| ("Anger" . "ヽ(‵﹏´)ノ") | |
| ("Hugging" . "(づ ̄ ³ ̄)づ") | |
| ("Hiding" . "┬┴┬┴┤( ͡° ͜ʖ├┬┴┬┴") | |
| ("Sleeping" . "(-_-) zzZ")) | |
| "Alist of human-readable emotions to the kaomoji.") | |
| (defun kaomoji/select () | |
| "Interactively select a kaomoji and copy it to the clipboard." | |
| (interactive) | |
| (ivy-read | |
| "Select a kaomoji: " | |
| symbols | |
| :action (lambda (entry) | |
| (kill-new (cdr entry)) | |
| (alert "Copied to clipboard!")))) | |
| (provide 'kaomoji) | |
| ;;; kaomoji.el ends here |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment