Variable: iimage-mode-image-regex-alist
iimage-mode-image-regex-alist is a customizable variable defined in
iimage.el.gz.
Value
(("\\(`?file://\\|\\[\\[\\|<\\|`\\)?\\([-+./_0-9a-zA-Z]+\\.\\(GIF\\|JP\\(?:E?G\\)\\|P\\(?:BM\\|GM\\|N[GM]\\|PM\\)\\|SVG\\|TIFF?\\|WEBP\\|X\\(?:[BP]M\\)\\|gif\\|jp\\(?:e?g\\)\\|p\\(?:bm\\|gm\\|n[gm]\\|pm\\)\\|svg\\|tiff?\\|webp\\|x\\(?:[bp]m\\)\\)\\)\\(\\]\\]\\|>\\|'\\)?"
. 2))
Documentation
Alist that specifies how to detect filenames of images to be displayed inline.
The value should be an alist whose elements have the form
(REGEXP . NUM)
where REGEXP is a regular expression to search buffer text for what might be a specification of an inline image, and NUM is the number of a parenthesized sub-expression of REGEXP which gives the name of the image file to look up.
Examples of image filename patterns to match:
file://foo.png
`file://foo.png'
M-x \[foo.gif (\[foo.gif)]
<foo.png>
foo.JPG
Source Code
;; Defined in /usr/src/emacs/lisp/iimage.el.gz
(defcustom iimage-mode-image-regex-alist
`((,(concat "\\(`?file://\\|\\[\\[\\|<\\|`\\)?"
"\\(" iimage-mode-image-filename-regex "\\)"
"\\(\\]\\]\\|>\\|'\\)?") . 2))
"Alist that specifies how to detect filenames of images to be displayed inline.
The value should be an alist whose elements have the form
(REGEXP . NUM)
where REGEXP is a regular expression to search buffer text for what
might be a specification of an inline image, and NUM is the number
of a parenthesized sub-expression of REGEXP which gives the name of
the image file to look up.
Examples of image filename patterns to match:
file://foo.png
\\=`file://foo.png\\='
\\[\\[foo.gif]]
<foo.png>
foo.JPG"
:type '(alist :key-type regexp :value-type integer))