2 ;;; mime-setup.el --- setup file to use tm and mime.el.
4 ;;; Copyright (C) 1995 Free Software Foundation, Inc.
5 ;;; Copyright (C) 1994,1995 MORIOKA Tomohiko
7 ;;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
9 ;;; $Id: mime-setup.el,v 7.0 1995/10/03 04:27:39 morioka Exp $
10 ;;; Keywords: mail, news, MIME, multimedia, multilingual, encoded-word
12 ;;; This file is part of tm (Tools for MIME).
21 (defvar mime-setup-use-sc nil)
22 (defvar mime-setup-use-signature t)
23 (defvar mime-setup-signature-key "\C-c\C-s")
26 ;;; @ for Edit MIME mode
29 (autoload 'mime-mode "mime" "Edit MIME message." t)
30 (autoload 'mime-convert-buffer "mime" "convert to MIME." t)
32 (setq mime-content-types
34 ;; Charset parameter need not to be specified, since it is
35 ;; defined automatically while translation.
37 ;;("charset" "" "ISO-2022-JP" "US-ASCII" "ISO-8859-1" "ISO-8859-8")
40 ;;("charset" "" "ISO-2022-JP" "US-ASCII" "ISO-8859-1" "ISO-8859-8")
43 ;;("charset" "" "ISO-2022-JP" "US-ASCII" "ISO-8859-1" "ISO-8859-8")
47 ;;("charset" "" "ISO-2022-JP" "US-ASCII" "ISO-8859-1" "ISO-8859-8")
51 ;;("charset" "" "ISO-2022-JP" "US-ASCII" "ISO-8859-1" "ISO-8859-8")
57 ("site" "ftp.jaist.ac.jp" "wnoc-fuk.wide.ad.jp" "nic.karrn.ad.jp")
58 ("directory" "/pub/GNU/elisp/mime")
60 ("mode" "binary" "ascii"))
65 ("mode" "binary" "ascii"))
81 ("type" "" "tar" "shar")
103 (if mime-setup-use-signature
105 (autoload 'insert-signature "signature" "Insert signature" t)
107 (add-hook 'mime-mode-hook
110 (define-key (current-local-map)
111 mime-setup-signature-key
112 (function insert-signature))
115 (setq gnus-signature-file nil)
119 ;;; @ for encoded-word
122 (autoload 'mime/encode-message-header "tm-eword"
123 "convert message header to MIME style." t)
125 (add-hook 'mime-translate-hook (function mime/encode-message-header))
127 (setq mime-header-charset-chooser
140 (setq mime-transfer-encoders
141 '(("base64" "mmencode")
142 ("quoted-printable" "mmencode" "-q")
143 ("7bit" nil) ;Default
146 ("x-uue" "uuencode" "-")
149 (setq mime-file-types
151 "text" "richtext" nil nil)
153 "text" "html" nil nil)
155 "application" "postscript" nil "quoted-printable")
157 "image" "gif" nil "base64")
159 "image" "jpeg" nil "base64")
161 "image" "x-xwd" nil "base64")
163 "image" "x-xbm" nil "base64")
165 "image" "x-pic" nil "base64")
167 "image" "tiff" nil "base64")
169 "audio" "basic" nil "base64")
171 "video" "mpeg" nil "base64")
173 "application" "octet-stream" (("name" . file)
174 ("type" . "emacs-lisp")) "7bit")
176 "application" "octet-stream" (("name" . file)
178 ("conversions" . "gzip")) nil)
180 "text" "plain" nil nil)
181 (".*" nil nil nil nil))
186 ;;; @ about SuperCite
189 (if mime-setup-use-sc
197 (add-hook 'mh-letter-mode-hook
200 (mime/decode-message-header)
202 (make-local-variable 'mail-header-separator)
203 (setq mail-header-separator "--------"))
210 (add-hook 'news-reply-mode-hook
213 (mime/decode-message-header)
214 (set-buffer-modified-p nil)
219 ;;; @ for Mail mode (includes VM mode)
222 (add-hook 'mail-mode-hook (function mime-mode))
223 (add-hook 'mail-setup-hook (function mime/decode-message-header))
225 ;;; @@ In VM, the following definitions may be requried:
228 (if (boundp 'vm-visible-headers)
230 (setq vm-preview-lines nil)
231 (setq vm-invisible-header-regexp nil)
232 (setq vm-visible-headers
233 (append vm-visible-headers
236 "Content-Transfer-Encoding:")))
243 (provide 'mime-setup)
247 ;;; mode: outline-minor
248 ;;; outline-regexp: ";;; @+\\|(......"