Advertisement
mark-naylor-1701

emacs emojis

Mar 29th, 2024
1,489
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 1.25 KB | None | 0 0
  1. (defvar thumb-up-char "👍")
  2. (defvar thumb-down-char "👎")
  3. (defvar rolling-on-floor-char "🤣")
  4. (defvar angry-face-char "😠")
  5. (defvar wink-tongue-char "😜")
  6. (defvar face-palm-char "🤦")
  7.  
  8.  
  9. (defun insert-strs (str count)
  10.   "Insert count strings, separated by a space."
  11.   (insert (s-join " " (-repeat count str))))
  12.  
  13. (defun face-palm (n)
  14.   "Generate n face palm Unicode characters."
  15.   (interactive "p")
  16.   (insert-strs face-palm-char n))
  17.  
  18. (defun thumbs-up (n)
  19.   "Generate n thumbs-up Unicode characters."
  20.   (interactive "p")
  21.   (insert-strs thumb-up-char n))
  22.  
  23. (defun thumbs-down (n)
  24.   "Generate n thumbs-down Unicode characters."
  25.   (interactive "p")
  26.   (insert-strs thumb-down-char n))
  27.  
  28. (defun face-palm (n)
  29.   "Generate n face palm Unicode characters."
  30.   (interactive "p")
  31.   (insert-strs face-palm-char n))
  32.  
  33. (defun wink-tongue (n)
  34.   "Generate n winking face w/ tongue Unicode characters."
  35.   (interactive "p")
  36.   (insert-strs wink-tongue-char n))
  37.  
  38. (defun rofl (n)
  39.   "Generate n rolling on the floor laughing Unicode characters."
  40.   (interactive "p")
  41.   (insert-strs rolling-on-floor-char n))
  42.  
  43. (defun angry-face (n)
  44.   "Generate n rolling on the floor laughing Unicode characters."
  45.   (interactive "p")
  46.   (insert-strs angry-face-char n))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement