-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
nbecker(a)fred.net writes:
I used this:
(setq load-path (append (list (expand-file-name
"/usr/local/share/emacs/site-lisp")) load-path))
(require 'mailcrypt)
(mc-setversion "gpg")
(autoload 'mc-install-write-mode "mailcrypt" nil t)
(autoload 'mc-install-read-mode "mailcrypt" nil t)
(add-hook 'mail-mode-hook 'mc-install-write-mode)
Thanks, that does appear to be cleaner than what I did.
Andrew Gierth also sent his solution for FSF Emacs which was geared to
not disturbing an existing earlier setup:
;; add personal library directories to start of load-path
(setq load-path
(cons
(expand-file-name "~/.Emacs")
(cons
(expand-file-name "~/.Emacs/gnus-5.4.67/lisp")
(cons
(expand-file-name "~/.Emacs/mailcrypt-3.5b7/lisp")
load-path))))
and this in .gnus:
(require 'mailcrypt)
(mc-setversion "gpg")
(setq mc-gpg-user-id "andrew(a)erlenstar.demon.co.uk")
(setq mc-pgp-user-id "andrew(a)erlenstar.demon.co.uk")
(add-hook 'gnus-summary-mode-hook 'mc-install-read-mode)
(add-hook 'message-mode-hook 'mc-install-write-mode)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v0.4.4 (GNU/Linux)
Comment: For info finger gcrypt(a)ftp.guug.de
iD8DBQE2WwHPnDcOefj8X+gRAhJDAJ9RUldct84PrXrp6n30w4hQS+xcqQCfRTvH
tUOJKRewed/uIIy/3qMZ1ts=
=V+jL
-----END PGP SIGNATURE-----