File: mailcrypt-init.el

package info (click to toggle)
mailcrypt 3.5.5-6.2
  • links: PTS
  • area: contrib
  • in suites: potato
  • size: 696 kB
  • ctags: 331
  • sloc: lisp: 4,142; sh: 170; makefile: 97; perl: 36
file content (65 lines) | stat: -rw-r--r-- 2,278 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
;-*-emacs-lisp-*-

;; mailcrypt-init.el, perform mailcrypt initialization
;; Copyright (C) 1996 Joe Reinhardt <joe-reinhardt@uiowa.edu>
;; Copyright  Davide G. M. Salvetti <salve@debian.org>, 1998, 1999.

;;{{{ Licensing
;; This file is intended to be used with GNU Emacs.

;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 2, or (at your option)
;; any later version.

;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;; GNU General Public License for more details.

;; You should have received a copy of the GNU General Public License along
;; with this program; if not, write to the Free Software Foundation, Inc.,
;; 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
;;}}}

(provide 'mailcrypt-init)

;;; Configuration

;; Autoloads as per README
(autoload 'mc-install-write-mode "mailcrypt" "Part of MailCrypt" t)
(autoload 'mc-install-read-mode "mailcrypt" "Part of MailCrypt" t)
(autoload 'mc-setversion "mailcrypt" "Part of MailCrypt" t)

;; mail-mode hook
(add-hook 'mail-mode-hook 'mc-install-write-mode)

;; rmail hooks
(if (and (boundp 'emacs-version)
	 (>= emacs-major-version 20)
	 (>= emacs-minor-version 3))
    (add-hook 'rmail-show-message-hook 'mc-install-read-mode)
  (add-hook 'rmail-mode-hook 'mc-install-read-mode))
(add-hook 'rmail-summary-mode-hook 'mc-install-read-mode)

;; vm hooks
(add-hook 'vm-mode-hook 'mc-install-read-mode)
(add-hook 'vm-summary-mode-hook 'mc-install-read-mode)
(add-hook 'vm-virtual-mode-hook 'mc-install-read-mode)
(add-hook 'vm-mail-mode-hook 'mc-install-write-mode)

;; mh hooks
(add-hook 'mh-folder-mode-hook 'mc-install-read-mode)
(add-hook 'mh-letter-mode-hook 'mc-install-write-mode)

;; gnus hooks
(add-hook 'gnus-summary-mode-hook 'mc-install-read-mode)
(add-hook 'message-setup-hook 'mc-install-write-mode)
(add-hook 'news-reply-mode-hook 'mc-install-write-mode)

;; load path
(setq load-path (cons (concat "/usr/share/" 
			      (symbol-name debian-emacs-flavor)
			      "/site-lisp/mailcrypt") load-path))

;;; End