aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/image.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/image.el')
-rw-r--r--lisp/image.el21
1 files changed, 21 insertions, 0 deletions
diff --git a/lisp/image.el b/lisp/image.el
index 4a68b4999ea..93cc92ef264 100644
--- a/lisp/image.el
+++ b/lisp/image.el
@@ -694,6 +694,27 @@ shall be displayed."
694 (cons images tmo)))))) 694 (cons images tmo))))))
695 695
696 696
697(defcustom imagemagick-types-inhibit
698 '(C HTML HTM TXT PDF)
699 "Types the imagemagick loader should not try to handle.")
700
701;;;###autoload
702(defun imagemagick-register-types ()
703 "Register file types that imagemagick is able to handle."
704 (let ((im-types (imagemagick-types)))
705 (dolist (im-inhibit imagemagick-types-inhibit)
706 (setq im-types (remove im-inhibit im-types)))
707 (dolist (im-type im-types)
708 (let ((extension (downcase (symbol-name im-type))))
709 (push
710 (cons (concat "\\." extension "\\'") 'image-mode)
711 auto-mode-alist)
712 (push
713 (cons (concat "\\." extension "\\'") 'imagemagick)
714 image-type-file-name-regexps)))))
715
716
717
697(provide 'image) 718(provide 'image)
698 719
699;; arch-tag: 8e76a07b-eb48-4f3e-a7a0-1a7ba9f096b3 720;; arch-tag: 8e76a07b-eb48-4f3e-a7a0-1a7ba9f096b3