File: mailcrypt-init.el

package info (click to toggle)
mailcrypt 3.5.9-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,252 kB
  • ctags: 624
  • sloc: lisp: 5,382; python: 1,170; makefile: 215; sh: 172
file content (79 lines) | stat: -rw-r--r-- 2,718 bytes parent folder | download | duplicates (3)
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
;; mailcrypt-init.el, perform mailcrypt initialization
;; Copyright (C) 1998, 99, 2002, 05, 06
;; by Davide G. M. Salvetti <salve@debian.org>
;; Copyright (C) 1996 Joe Reinhardt <joe-reinhardt@uiowa.edu>

;;{{{ 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.,
;; 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
;;}}}

;;; 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)	; check for >= 20.3
	 (or (> emacs-major-version 20)
	     (and (>= 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-E 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)

;; Mew hooks
(add-hook 'mew-message-mode-hook 'mc-install-read-mode)
(add-hook 'mew-summary-mode-hook 'mc-install-read-mode)
(add-hook 'mew-draft-mode-hook 'mc-install-write-mode)

;; GNU Privacy Guard is our default.
(setq mc-default-scheme 'mc-scheme-gpg)

(provide 'mailcrypt-init)

;;; End

;; arch-tag: 6b98de11-0cd8-4289-90cd-5b1224e13581
;;
;; local variables:
;; mode: emacs-lisp
;; coding: utf-8
;; ispell-local-dictionary: "american"
;; ispell-check-comments: exclusive
;; end:
;;
;; LocalWords:  mailcrypt init Autoloads README Rmail VM MH el