about summary refs log tree commit diff
path: root/users/wpcarro/emacs/.emacs.d/wpc/wpc-misc.el
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2021-12-25T00ยท25-0500
committerwpcarro <wpcarro@gmail.com>2021-12-25T16ยท07+0000
commit8d64d1eeb01cc40b52f02f488f8a8b34b047c735 (patch)
treeabe260a20eb76f15c8a9efa8a9789dd8bde13a37 /users/wpcarro/emacs/.emacs.d/wpc/wpc-misc.el
parentd44b57b6419ead9fcecaf86b5ef90ba06de17331 (diff)
feat(wpcarro/emacs): Support emojis in Emacs ๐ŸŽ‰ r/3391
The future has arrived...

Change-Id: Ib4e57018cbf9168e43f403e4e0b640d0e0035352
Reviewed-on: https://cl.tvl.fyi/c/depot/+/4595
Reviewed-by: wpcarro <wpcarro@gmail.com>
Autosubmit: wpcarro <wpcarro@gmail.com>
Tested-by: BuildkiteCI
Diffstat (limited to 'users/wpcarro/emacs/.emacs.d/wpc/wpc-misc.el')
-rw-r--r--users/wpcarro/emacs/.emacs.d/wpc/wpc-misc.el9
1 files changed, 9 insertions, 0 deletions
diff --git a/users/wpcarro/emacs/.emacs.d/wpc/wpc-misc.el b/users/wpcarro/emacs/.emacs.d/wpc/wpc-misc.el
index 2773629c9f13..9af5d88d3804 100644
--- a/users/wpcarro/emacs/.emacs.d/wpc/wpc-misc.el
+++ b/users/wpcarro/emacs/.emacs.d/wpc/wpc-misc.el
@@ -311,6 +311,15 @@
   :config
   (paradox-enable))
 
+;; render emojis in Emacs ๐Ÿ•บ
+(use-package emojify
+  :config
+  (add-hook 'after-init-hook #'global-emojify-mode)
+  (defun wpc-misc-copy-emoji ()
+    "Select an emoji from the completing-read menu."
+    (interactive)
+    (clipboard-copy (emojify-completing-read "Copy: "))))
+
 ;; Start the Emacs server
 (when (not (server-running-p))
   (server-start))