Variable: smiley-emoji-regexp-alist

smiley-emoji-regexp-alist is a customizable variable defined in smiley.el.gz.

Value

(("\\(;-)\\)\\W" 1 "😉") ("[^;]\\(;)\\)\\W" 1 "😉")
 ("\\(:-]\\)\\W" 1 "😬") ("\\(8-)\\)\\W" 1 "🥴")
 ("\\(:-|\\)\\W" 1 "😐") ("\\(:-[/\\]\\)\\W" 1 "😕")
 ("\\(:-(\\)\\W" 1 "😠") ("\\(X-)\\)\\W" 1 "😵")
 ("\\(:-{\\)\\W" 1 "😦") ("\\(>:-)\\)\\W" 1 "😈")
 ("\\(;-(\\)\\W" 1 "😢") ("\\(:-D\\)\\W" 1 "😀")
 ("\\(O:-)\\)\\W" 1 "😇") ("\\(\\^?:-?)\\)\\W" 1 "🙂"))

Documentation

A list of regexps to map smilies to emoji.

The elements are (REGEXP MATCH EMOJI), where MATCH is the submatch in regexp to replace with EMOJI.

This variable was added, or its default value changed, in Emacs 28.1.

Source Code

;; Defined in /usr/src/emacs/lisp/gnus/smiley.el.gz
(defcustom smiley-emoji-regexp-alist
  '(("\\(;-)\\)\\W" 1 "😉")
    ("[^;]\\(;)\\)\\W" 1 "😉")
    ("\\(:-]\\)\\W" 1 "😬")
    ("\\(8-)\\)\\W" 1 "🥴")
    ("\\(:-|\\)\\W" 1 "😐")
    ("\\(:-[/\\]\\)\\W" 1 "😕")
    ("\\(:-(\\)\\W" 1 "😠")
    ("\\(X-)\\)\\W" 1 "😵") ; 💀
    ("\\(:-{\\)\\W" 1 "😦")
    ("\\(>:-)\\)\\W" 1 "😈")
    ("\\(;-(\\)\\W" 1 "😢")
    ("\\(:-D\\)\\W" 1 "😀")
    ("\\(O:-)\\)\\W" 1 "😇")
    ;; "smile" must be come after "evil"
    ("\\(\\^?:-?)\\)\\W" 1 "🙂"))
  "A list of regexps to map smilies to emoji.
The elements are (REGEXP MATCH EMOJI), where MATCH is the submatch in
regexp to replace with EMOJI."
  :version "28.1"
  :type '(repeat (list regexp
		       (integer :tag "Regexp match number")
		       (string :tag "Emoji")))
  :set (lambda (symbol value)
	 (set-default symbol value)
	 (smiley-update-cache))
  :initialize #'custom-initialize-default)