Variable: smiley-regexp-alist

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

Value

(("\\(;-)\\)\\W" 1 "blink")
 ("[^;]\\(;)\\)\\W" 1 "blink")
 ("\\(:-]\\)\\W" 1 "forced")
 ("\\(8-)\\)\\W" 1 "braindamaged")
 ("\\(:-|\\)\\W" 1 "indifferent")
 ("\\(:-[/\\]\\)\\W" 1 "wry")
 ("\\(:-(\\)\\W" 1 "sad")
 ("\\(X-)\\)\\W" 1 "dead")
 ("\\(:-{\\)\\W" 1 "frown")
 ("\\(>:-)\\)\\W" 1 "evil")
 ("\\(;-(\\)\\W" 1 "cry")
 ("\\(:-D\\)\\W" 1 "grin")
 ("\\(\\^?:-?)\\)\\W" 1 "smile"))

Documentation

A list of regexps to map smilies to images.

The elements are (REGEXP MATCH IMAGE), where MATCH is the submatch in regexp to replace with IMAGE. IMAGE is the name of an image file in smiley-data-directory.

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

Source Code

;; Defined in /usr/src/emacs/lisp/gnus/smiley.el.gz
;; The XEmacs version has a baroque, if not rococo, set of these.
(defcustom smiley-regexp-alist
  '(("\\(;-)\\)\\W" 1 "blink")
    ("[^;]\\(;)\\)\\W" 1 "blink")
    ("\\(:-]\\)\\W" 1 "forced")
    ("\\(8-)\\)\\W" 1 "braindamaged")
    ("\\(:-|\\)\\W" 1 "indifferent")
    ("\\(:-[/\\]\\)\\W" 1 "wry")
    ("\\(:-(\\)\\W" 1 "sad")
    ("\\(X-)\\)\\W" 1 "dead")
    ("\\(:-{\\)\\W" 1 "frown")
    ("\\(>:-)\\)\\W" 1 "evil")
    ("\\(;-(\\)\\W" 1 "cry")
    ("\\(:-D\\)\\W" 1 "grin")
    ;; "smile" must be come after "evil"
    ("\\(\\^?:-?)\\)\\W" 1 "smile"))
  "A list of regexps to map smilies to images.
The elements are (REGEXP MATCH IMAGE), where MATCH is the submatch in
regexp to replace with IMAGE.  IMAGE is the name of an image file in
`smiley-data-directory'."
  :version "24.1"
  :type '(repeat (list regexp
		       (integer :tag "Regexp match number")
		       (string :tag "Image name")))
  :set (lambda (symbol value)
	 (set-default symbol value)
	 (smiley-update-cache))
  :initialize #'custom-initialize-default)