annotate lisp/tm/tm-setup.el @ 76:c0c698873ce1 r20-0b33

Import from CVS: tag r20-0b33
author cvs
date Mon, 13 Aug 2007 09:05:10 +0200
parents 54cc21c15cbb
children 0d2f883870bc
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
1 ;;; tm-setup.el --- setup file for tm viewer.
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
2
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 22
diff changeset
3 ;; Copyright (C) 1994,1995,1996 Free Software Foundation, Inc.
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
5 ;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
6 ;; Version: $Id: tm-setup.el,v 1.1.1.2 1996/12/21 20:50:45 steve Exp $
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
7 ;; Keywords: mail, news, MIME, multimedia, multilingual, encoded-word
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
8
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
9 ;; This file is part of tm (Tools for MIME).
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
10
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
11 ;; This program is free software; you can redistribute it and/or
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
12 ;; modify it under the terms of the GNU General Public License as
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
13 ;; published by the Free Software Foundation; either version 2, or (at
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
14 ;; your option) any later version.
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
15
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
16 ;; This program is distributed in the hope that it will be useful, but
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
17 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
19 ;; General Public License for more details.
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
20
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
21 ;; You should have received a copy of the GNU General Public License
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 22
diff changeset
22 ;; along with This program; see the file COPYING. If not, write to
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 22
diff changeset
23 ;; the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
24 ;; Boston, MA 02111-1307, USA.
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
25
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
26 ;;; Code:
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
27
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
28 (require 'tl-misc)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
29
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
30
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
31 ;;; @ for tm-view
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
32 ;;;
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
33
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
34 (call-after-loaded
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
35 'tm-view
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
36 (function
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
37 (lambda ()
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
38 ;; for message/partial
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
39 (require 'tm-partial)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
40
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
41 ;; for anonymous ftp
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
42 (set-atype 'mime/content-decoding-condition
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
43 '((type . "message/external-body")
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
44 ("access-type" . "anon-ftp")
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 22
diff changeset
45 (method . mime/decode-message/external-ftp)
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
46 ))
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 22
diff changeset
47 (autoload 'mime/decode-message/external-ftp "tm-ftp")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 22
diff changeset
48
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
49 ;; for LaTeX
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
50 (set-atype 'mime/content-decoding-condition
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
51 '((type . "text/x-latex")
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
52 (method . mime/decode-text/latex)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
53 ))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
54 (set-atype 'mime/content-decoding-condition
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
55 '((type . "application/x-latex")
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
56 (method . mime/decode-text/latex)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
57 ))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
58 ;;(set-atype 'mime/content-decoding-condition
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
59 ;; '((type . "application/octet-stream")
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
60 ;; ("type" . "latex")
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
61 ;; (method . mime/decode-text/latex)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
62 ;; ))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
63 (autoload 'mime/decode-text/latex "tm-latex")
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
64 )))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
65
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
66 ;; for image/* and X-Face
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 22
diff changeset
67 (if running-xemacs
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
68 (call-after-loaded 'tm-view
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
69 (function
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
70 (lambda ()
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
71 (require 'tm-image)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
72 )))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
73 )
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
74
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
75 ;; for PGP
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 22
diff changeset
76 (if (module-installed-p 'mailcrypt)
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
77 (call-after-loaded 'tm-view
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
78 (function
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
79 (lambda ()
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
80 (require 'tm-pgp)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
81 )))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
82 )
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
83
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
84
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
85 ;;; @ for RMAIL
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
86 ;;;
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
87
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
88 (or running-xemacs-with-mule
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
89 (call-after-loaded 'rmail
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
90 (function
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
91 (lambda ()
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
92 (require 'tm-rmail)
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
93 ))
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
94 'rmail-mode-hook)
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
95 )
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
96
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
97
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
98 ;;; @ for mh-e
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
99 ;;;
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
100
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
101 (let ((le (function
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
102 (lambda ()
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
103 (require 'tm-mh-e)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
104 ))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
105 ))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
106 (call-after-loaded 'mh-e le 'mh-folder-mode-hook)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
107 (if (not (featurep 'mh-e))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
108 (add-hook 'mh-letter-mode-hook le)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
109 ))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
110
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
111
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
112 ;;; @ for GNUS and Gnus
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
113 ;;;
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
114
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
115 (if (featurep 'gnus)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
116 (if (boundp 'gnus-load-hook)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
117 (require 'gnus-mime)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
118 (require 'tm-gnus)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
119 )
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
120 ;; for GNUS
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
121 (defvar tm-setup/use-gnusutil nil)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
122
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
123 (defun tm-setup/load-GNUS ()
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
124 (require 'tm-gnus)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
125 )
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
126
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
127 (if (and (boundp 'MULE) tm-setup/use-gnusutil)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
128 (progn
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
129 (add-hook 'gnus-Group-mode-hook (function gnusutil-initialize))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
130 (add-hook 'gnus-group-mode-hook (function gnusutil-initialize))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
131 (autoload 'gnusutil-initialize "gnusutil")
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
132 (autoload 'gnusutil-add-group "gnusutil")
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
133 (add-hook 'gnusutil-initialize-hook 'tm-setup/load-GNUS)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
134 )
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
135 (add-hook 'gnus-Startup-hook 'tm-setup/load-GNUS 'append)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
136 (add-hook 'gnus-startup-hook 'tm-setup/load-GNUS 'append)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
137 )
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
138
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
139 ;; for Gnus
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
140 (defun tm-setup/load-gnus ()
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
141 (let (gnus-load-hook)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
142 (remove-hook 'gnus-startup-hook 'tm-setup/load-GNUS)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
143 (require 'gnus-mime)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
144 ))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
145
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
146 (add-hook 'gnus-load-hook 'tm-setup/load-gnus)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
147 )
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
148
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
149
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
150 ;;; @ end
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
151 ;;;
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
152
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
153 (provide 'tm-setup)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
154
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
155 ;;; tm-setup.el ends here