X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=tm-setup.el;h=e0f3f6d784ba4880b351291f77fc7e46c4214d11;hb=53ab6c426401d04d0d0ce99d6df144187be6ba01;hp=73c24a7f357662faf03c80a0f0fcbbd6fc3b9630;hpb=512f3ae410a64c797aee755730d693750b232e6c;p=elisp%2Ftm.git diff --git a/tm-setup.el b/tm-setup.el index 73c24a7..e0f3f6d 100644 --- a/tm-setup.el +++ b/tm-setup.el @@ -1,12 +1,38 @@ ;;; -;;; $Id: tm-setup.el,v 6.2 1995/05/30 05:48:22 morioka Exp $ +;;; tm-setup.el --- setup file for tm viewer. ;;; +;;; Copyright (C) 1995 Free Software Foundation, Inc. +;;; Copyright (C) 1994 .. 1996 MORIOKA Tomohiko +;;; +;;; Author: MORIOKA Tomohiko +;;; Version: +;;; $Id: tm-setup.el,v 7.3 1996/05/08 15:00:00 morioka Exp $ +;;; Keywords: mail, news, MIME, multimedia, multilingual, encoded-word +;;; +;;; This file is part of tm (Tools for MIME). +;;; +;;; This program is free software; you can redistribute it and/or +;;; modify it under the terms of the GNU General Public License as +;;; published by the Free Software Foundation; either version 2, or +;;; (at your option) any later version. +;;; +;;; This program is distributed in the hope that it will be useful, +;;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +;;; General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with This program. If not, write to the Free Software +;;; Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. +;;; +;;; Code: (require 'tl-misc) -;;; @ for LaTeX +;;; @ for tm-view ;;; + (call-after-loaded 'tm-view (function @@ -14,6 +40,19 @@ ;; 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 image/* + (if running-xemacs + (require 'tm-image) + ) + ;; for LaTeX (set-atype 'mime/content-decoding-condition '((type . "text/x-latex") @@ -32,28 +71,20 @@ ))) -;;; @ for Anonymous FTP (need of ange-ftp) -;;; -(call-after-loaded - 'tm-view - (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") - ))) - - ;;; @ for RMAIL ;;; -(require 'tm-rmail) + +(call-after-loaded 'rmail + (function + (lambda () + (require 'tm-rmail) + )) + 'rmail-mode-hook) ;;; @ for mh-e ;;; + (let ((le (function (lambda () (require 'tm-mh-e) @@ -84,8 +115,8 @@ (add-hook 'gnusutil-initialize-hook le) ) (progn - (add-hook 'gnus-Startup-hook le) - (add-hook 'gnus-startup-hook le) + (add-hook 'gnus-Startup-hook le 'append) + (add-hook 'gnus-startup-hook le 'append) ))) @@ -94,8 +125,4 @@ (provide 'tm-setup) -;;; Local Variables: -;;; mode: emacs-lisp -;;; mode: outline-minor -;;; outline-regexp: ";;; @+\\|(......" -;;; End: +;;; tm-setup.el ends here