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.7 1995/10/26 11:12:49 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-default-signature-key "\C-c\C-s")
24 (defvar mime-setup-signature-key-alist '((mail-mode . "\C-c\C-w")))
27 ;;; @ for Edit MIME mode
30 (autoload 'mime-mode "tm-edit" "Edit MIME message." t)
36 (if mime-setup-use-signature
38 (autoload 'insert-signature "signature" "Insert signature" t)
39 (add-hook 'mime-mode-hook
44 mime-setup-signature-key-alist)
46 mime-setup-default-signature-key)))
47 (define-key (current-local-map)
48 key (function insert-signature))
50 (setq gnus-signature-file nil)
65 (add-hook 'mh-letter-mode-hook
68 (mime/decode-message-header)
70 (make-local-variable 'mail-header-separator)
71 (setq mail-header-separator "--------")
73 (goto-char (point-min))
74 (if (re-search-forward "^-*$" nil t)
76 (replace-match mail-header-separator)
77 (set-buffer-modified-p (buffer-modified-p))
86 (add-hook 'news-reply-mode-hook
89 (mime/decode-message-header)
90 (set-buffer-modified-p nil)
94 ;;; for Gnus 5.* and September Gnus
96 (add-hook 'news-inews-hook
102 (add-hook 'mail-send-hook
110 ;;; @ for Mail mode (includes VM mode)
113 (add-hook 'mail-mode-hook (function mime-mode))
114 (add-hook 'mail-setup-hook (function mime/decode-message-header))
116 ;;; @@ In VM, the following definitions may be requried:
119 ;;; (if (boundp 'vm-visible-headers)
121 ;;; (setq vm-preview-lines nil)
122 ;;; (setq vm-invisible-header-regexp nil)
123 ;;; (setq vm-visible-headers
124 ;;; (append vm-visible-headers
125 ;;; '("Mime-Version:"
127 ;;; "Content-Transfer-Encoding:")))
134 (provide 'mime-setup)