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.9 1995/10/28 06:02:53 morioka Exp $
10 ;;; Keywords: mail, news, MIME, multimedia, multilingual, encoded-word
12 ;;; This file is part of tm (Tools for MIME).
17 (autoload 'mime/editor-mode "tm-edit"
18 "Minor mode for editing MIME message." t)
20 (add-hook 'mime/editor-mode-hook
25 (goto-char (point-min))
28 (if (re-search-forward
29 (concat "^" (regexp-quote mail-header-separator) "$")
34 (mime/decode-message-header)
35 (set-buffer-modified-p nil)
42 (defvar mime-setup-use-sc nil)
43 (defvar mime-setup-use-signature t)
44 (defvar mime-setup-default-signature-key "\C-c\C-s")
45 (defvar mime-setup-signature-key-alist '((mail-mode . "\C-c\C-w")))
51 (if mime-setup-use-signature
53 (autoload 'insert-signature "signature" "Insert signature" t)
54 (add-hook 'mime/editor-mode-hook
59 mime-setup-signature-key-alist)
61 mime-setup-default-signature-key)))
62 (define-key (current-local-map)
63 key (function insert-signature))
65 (setq gnus-signature-file nil)
80 (add-hook 'mail-mode-hook 'mime/editor-mode)
81 (add-hook 'mail-setup-hook 'mime/decode-message-header)
82 (add-hook 'mail-send-hook 'mime-editor/maybe-translate)
88 (add-hook 'mh-letter-mode-hook
92 (make-local-variable 'mail-header-separator)
93 (setq mail-header-separator "--------")
95 (goto-char (point-min))
96 (if (re-search-forward "^-*$" nil t)
98 (replace-match mail-header-separator)
99 (set-buffer-modified-p (buffer-modified-p))
104 (add-hook 'mh-before-send-letter-hook 'mime-editor/maybe-translate)
110 (add-hook 'news-reply-mode-hook 'mime/editor-mode)
111 (add-hook 'news-inews-hook 'mime-editor/maybe-translate)
117 (provide 'mime-setup)
119 (run-hooks 'mime-setup-load-hook)