Skip to content

Instantly share code, notes, and snippets.

@xy4n
Created October 22, 2015 13:20
Show Gist options
  • Save xy4n/8f0c07a908114170900f to your computer and use it in GitHub Desktop.
Save xy4n/8f0c07a908114170900f to your computer and use it in GitHub Desktop.
(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