-(add-hook 'tm-view-load-hook
- (function
- (lambda ()
- (set-atype 'mime/content-decoding-condition
- '((type . "message/external-body")
- ("access-type" . "anon-ftp")
- (method . mime/decode-message/external-ftp)
- ))
- (autoload 'mime/decode-message/external-ftp "tm-ftp")
- )))
+
+(call-after-loaded
+ 'tm-view
+ (function
+ (lambda ()
+ ;; for message/partial
+ (require 'tm-partial)
+
+ ;; for anonymous ftp
+ (set-atype 'mime/content-decoding-condition
+ '((type . "message/external-body")
+ ("access-type" . "anon-ftp")
+ (method . mime/decode-message/external-ftp)
+ ))
+ (autoload 'mime/decode-message/external-ftp "tm-ftp")
+
+ ;; for LaTeX
+ (set-atype 'mime/content-decoding-condition
+ '((type . "text/x-latex")
+ (method . mime/decode-text/latex)
+ ))
+ (set-atype 'mime/content-decoding-condition
+ '((type . "application/x-latex")
+ (method . mime/decode-text/latex)
+ ))
+ ;;(set-atype 'mime/content-decoding-condition
+ ;; '((type . "application/octet-stream")
+ ;; ("type" . "latex")
+ ;; (method . mime/decode-text/latex)
+ ;; ))
+ (autoload 'mime/decode-text/latex "tm-latex")
+ )))
+
+;; for image/* and X-Face
+(if running-xemacs
+ (call-after-loaded 'tm-view
+ (function
+ (lambda ()
+ (require 'tm-image)
+ )))
+ )
+
+;; for PGP
+(if (module-installed-p 'mailcrypt)
+ (call-after-loaded 'tm-view
+ (function
+ (lambda ()
+ (require 'tm-pgp)
+ )))
+ )