1 ;;; semi-setup.el --- setup file for MIME-View.
3 ;; Copyright (C) 1994,1995,1996,1997 Free Software Foundation, Inc.
5 ;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
6 ;; Version: $Id: semi-setup.el,v 0.16 1997-03-18 13:06:09 morioka Exp $
7 ;; Keywords: mail, news, MIME, multimedia, multilingual, encoded-word
9 ;; This file is part of SEMI (SEMI is Emacs MIME Interfaces).
11 ;; This program is free software; you can redistribute it and/or
12 ;; modify it under the terms of the GNU General Public License as
13 ;; published by the Free Software Foundation; either version 2, or (at
14 ;; your option) any later version.
16 ;; This program is distributed in the hope that it will be useful, but
17 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 ;; General Public License for more details.
21 ;; You should have received a copy of the GNU General Public License
22 ;; along with GNU Emacs; see the file COPYING. If not, write to the
23 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
24 ;; Boston, MA 02111-1307, USA.
29 (require 'file-detect)
32 ;; for image/* and X-Face
33 (defvar mime-setup-enable-inline-image
36 (and (featurep 'mule)(module-installed-p 'bitmap))
38 "*If it is non-nil, semi-setup sets up to use mime-image.")
40 (if mime-setup-enable-inline-image
41 (call-after-loaded 'mime-view
49 (defvar mime-setup-enable-pgp
50 (module-installed-p 'mailcrypt)
51 "*If it is non-nil, semi-setup sets uf to use mime-pgp.")
54 (if mime-setup-enable-pgp
55 (call-after-loaded 'mime-view
66 (defun mime-setup-decode-message-header ()
69 (goto-char (point-min))
72 (if (re-search-forward
73 (concat "^" (regexp-quote mail-header-separator) "$")
79 (set-buffer-modified-p nil)
82 (add-hook 'mime-edit-mode-hook 'mime-setup-decode-message-header)
88 (defvar mime-setup-use-signature t
89 "If it is not nil, mime-setup sets up to use signature.el.")
91 (defvar mime-setup-default-signature-key "\C-c\C-s"
92 "*Key to insert signature.")
94 (defvar mime-setup-signature-key-alist '((mail-mode . "\C-c\C-w"))
95 "Alist of major-mode vs. key to insert signature.")
101 (defun mime-setup-set-signature-key ()
102 (let ((key (or (cdr (assq major-mode mime-setup-signature-key-alist))
103 mime-setup-default-signature-key)))
104 (define-key (current-local-map) key (function insert-signature))
107 (if mime-setup-use-signature
109 (autoload 'insert-signature "signature" "Insert signature" t)
110 (add-hook 'mime-edit-mode-hook 'mime-setup-set-signature-key)
111 (setq gnus-signature-file nil)
112 (setq mail-signature nil)
113 (setq message-signature nil)
120 (add-hook 'mu-cite/pre-cite-hook 'eword-decode-header)
126 (provide 'semi-setup)
128 ;;; semi-setup.el ends here