Created
October 22, 2015 13:20
-
-
Save xy4n/8f0c07a908114170900f to your computer and use it in GitHub Desktop.
This file contains 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 dots (msg) | |
(interactive "sText: ") | |
(let ((dot "❤") | |
(colours '(10 11 12 2 6 13 4 7 8 9 3 4)) | |
(message (s-trim msg))) | |
(insert | |
(s-join | |
"" | |
(list | |
(mapconcat | |
(lambda (c) | |
(format "%d%s%c" | |
(elt colours (random (length colours))) | |
dot | |
c)) | |
message | |
"") | |
(format "%d%s" | |
(elt colours (random (length colours))) | |
dot)))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment