Variable: image-file-name-regexps

image-file-name-regexps is a customizable variable defined in image-file.el.gz.

Value

nil

Documentation

List of regexps matching image-file filenames.

Filenames matching one of these regexps are considered image files, in addition to those with an extension in image-file-name-extensions.

See function auto-image-file-mode(var)/auto-image-file-mode(fun); if auto-image-file-mode(var)/auto-image-file-mode(fun) is enabled, setting this variable directly does not take effect unless auto-image-file-mode(var)/auto-image-file-mode(fun) is re-enabled; this happens automatically when the variable is set using M-x customize (customize).

Source Code

;; Defined in /usr/src/emacs/lisp/image-file.el.gz
;;;###autoload
(defcustom image-file-name-regexps nil
  "List of regexps matching image-file filenames.
Filenames matching one of these regexps are considered image files,
in addition to those with an extension in `image-file-name-extensions'.

See function `auto-image-file-mode'; if `auto-image-file-mode' is
enabled, setting this variable directly does not take effect unless
`auto-image-file-mode' is re-enabled; this happens automatically when
the variable is set using \\[customize]."
  :type '(repeat regexp)
  :set (lambda (sym val)
	 (set-default sym val)
	 (when auto-image-file-mode
	   ;; Re-initialize the image-file handler
	   (auto-image-file-mode t)))
  :initialize 'custom-initialize-default
  :group 'image)