Skip to content

Instantly share code, notes, and snippets.

@wpcarro
Created September 26, 2019 16:58
Show Gist options
  • Select an option

  • Save wpcarro/7a56d6aa322b41eacff2a87b55144fdb to your computer and use it in GitHub Desktop.

Select an option

Save wpcarro/7a56d6aa322b41eacff2a87b55144fdb to your computer and use it in GitHub Desktop.
Quickly copy kaomojis onto your system clipboard.
;;; 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