Function: emoji-list

emoji-list is an autoloaded, interactive and byte-compiled function defined in emoji.el.gz.

Signature

(emoji-list)

Documentation

List emojis and allow selecting and inserting one of them.

Select the emoji by typing RET (emoji-list-select) on its picture. The glyph will be inserted into the buffer that was current when the command was invoked.

View in manual

Probably introduced at or before Emacs version 29.1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/international/emoji.el.gz
;;;###autoload
(defun emoji-list ()
  "List emojis and allow selecting and inserting one of them.
Select the emoji by typing \\<emoji-list-mode-map>\\[emoji-list-select] on its picture.
The glyph will be inserted into the buffer that was current
when the command was invoked."
  (interactive)
  (let ((buf (current-buffer)))
    (emoji--init)
    (switch-to-buffer (get-buffer-create "*Emoji*"))
    (setq-local emoji--insert-buffer buf)
    ;; Don't regenerate the buffer if it already exists -- this will
    ;; leave point where it was the last time it was used.
    (when (zerop (buffer-size))
      (let ((inhibit-read-only t))
        (emoji-list-mode)
        (emoji--list-generate nil (cons nil emoji--labels))
        (goto-char (point-min))))))