2 ;;; tm-setup.el --- setup file for tm viewer.
4 ;;; Copyright (C) 1995 Free Software Foundation, Inc.
5 ;;; Copyright (C) 1994 .. 1996 MORIOKA Tomohiko
7 ;;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
9 ;;; $Id: tm-setup.el,v 7.6 1996/08/07 05:59:03 morioka Exp $
10 ;;; Keywords: mail, news, MIME, multimedia, multilingual, encoded-word
12 ;;; This file is part of tm (Tools for MIME).
14 ;;; This program is free software; you can redistribute it and/or
15 ;;; modify it under the terms of the GNU General Public License as
16 ;;; published by the Free Software Foundation; either version 2, or
17 ;;; (at your option) any later version.
19 ;;; This program is distributed in the hope that it will be useful,
20 ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
21 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 ;;; General Public License for more details.
24 ;;; You should have received a copy of the GNU General Public License
25 ;;; along with This program. If not, write to the Free Software
26 ;;; Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
40 ;; for message/partial
44 (set-atype 'mime/content-decoding-condition
45 '((type . "message/external-body")
46 ("access-type" . "anon-ftp")
47 (method . mime/decode-message/external-ftp)
49 (autoload 'mime/decode-message/external-ftp "tm-ftp")
57 (set-atype 'mime/content-decoding-condition
58 '((type . "text/x-latex")
59 (method . mime/decode-text/latex)
61 (set-atype 'mime/content-decoding-condition
62 '((type . "application/x-latex")
63 (method . mime/decode-text/latex)
65 ;;(set-atype 'mime/content-decoding-condition
66 ;; '((type . "application/octet-stream")
68 ;; (method . mime/decode-text/latex)
70 (autoload 'mime/decode-text/latex "tm-latex")
77 (call-after-loaded 'rmail
93 (call-after-loaded 'mh-e le 'mh-folder-mode-hook)
94 (if (not (featurep 'mh-e))
95 (add-hook 'mh-letter-mode-hook le)
99 ;;; @ for GNUS and Gnus
103 (if (boundp 'gnus-load-hook)
108 (defvar tm-setup/use-gnusutil nil)
110 (defun tm-setup/load-GNUS ()
114 (if (and (boundp 'MULE) tm-setup/use-gnusutil)
116 (add-hook 'gnus-Group-mode-hook (function gnusutil-initialize))
117 (add-hook 'gnus-group-mode-hook (function gnusutil-initialize))
118 (autoload 'gnusutil-initialize "gnusutil")
119 (autoload 'gnusutil-add-group "gnusutil")
120 (add-hook 'gnusutil-initialize-hook 'tm-setup/load-GNUS)
122 (add-hook 'gnus-Startup-hook 'tm-setup/load-GNUS 'append)
123 (add-hook 'gnus-startup-hook 'tm-setup/load-GNUS 'append)
127 (defun tm-setup/load-gnus ()
128 (let (gnus-load-hook)
129 (remove-hook 'gnus-startup-hook 'tm-setup/load-GNUS)
133 (add-hook 'gnus-load-hook 'tm-setup/load-gnus)
142 ;;; tm-setup.el ends here