0
|
1 ;;; gnus-setup.el --- Initialization & Setup for Gnus 5
|
78
|
2 ;; Copyright (C) 1995, 96, 97 Free Software Foundation, Inc.
|
0
|
3
|
78
|
4 ;; Author: Steven L. Baur <steve@altair.xemacs.org>
|
0
|
5 ;; Keywords: news
|
|
6
|
|
7 ;; This file is part of GNU Emacs.
|
|
8
|
|
9 ;; GNU Emacs is free software; you can redistribute it and/or modify
|
|
10 ;; it under the terms of the GNU General Public License as published by
|
|
11 ;; the Free Software Foundation; either version 2, or (at your option)
|
|
12 ;; any later version.
|
|
13
|
|
14 ;; GNU Emacs is distributed in the hope that it will be useful,
|
|
15 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17 ;; GNU General Public License for more details.
|
|
18
|
|
19 ;; You should have received a copy of the GNU General Public License
|
|
20 ;; along with GNU Emacs; see the file COPYING. If not, write to the
|
|
21 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
22 ;; Boston, MA 02111-1307, USA.
|
|
23
|
|
24 ;;; Commentary:
|
|
25 ;; My head is starting to spin with all the different mail/news packages.
|
|
26 ;; Stop The Madness!
|
|
27
|
|
28 ;; Given that Emacs Lisp byte codes may be diverging, it is probably best
|
|
29 ;; not to byte compile this, and just arrange to have the .el loaded out
|
|
30 ;; of .emacs.
|
|
31
|
78
|
32 ;; Dec-28 1996: Updated for better handling of preinstalled Gnus
|
|
33
|
0
|
34 ;;; Code:
|
|
35
|
78
|
36 (eval-when-compile
|
|
37 (require 'cl))
|
|
38
|
0
|
39 (defvar running-xemacs (string-match "XEmacs\\|Lucid" emacs-version))
|
|
40
|
78
|
41 (defvar gnus-use-installed-gnus t
|
|
42 "*If non-nil Use installed version of Gnus.")
|
|
43
|
|
44 (defvar gnus-use-installed-tm running-xemacs
|
|
45 "*If non-nil use installed version of tm.")
|
|
46
|
|
47 (defvar gnus-use-installed-mailcrypt running-xemacs
|
|
48 "*If non-nil use installed version of mailcrypt.")
|
|
49
|
0
|
50 (defvar gnus-emacs-lisp-directory (if running-xemacs
|
|
51 "/usr/local/lib/xemacs/"
|
|
52 "/usr/local/share/emacs/")
|
|
53 "Directory where Emacs site lisp is located.")
|
|
54
|
|
55 (defvar gnus-gnus-lisp-directory (concat gnus-emacs-lisp-directory
|
|
56 "gnus-5.0.15/lisp/")
|
|
57 "Directory where Gnus Emacs lisp is found.")
|
|
58
|
|
59 (defvar gnus-tm-lisp-directory (concat gnus-emacs-lisp-directory
|
|
60 "site-lisp/")
|
|
61 "Directory where TM Emacs lisp is found.")
|
|
62
|
|
63 (defvar gnus-mailcrypt-lisp-directory (concat gnus-emacs-lisp-directory
|
|
64 "site-lisp/mailcrypt-3.4/")
|
|
65 "Directory where Mailcrypt Emacs Lisp is found.")
|
|
66
|
|
67 (defvar gnus-bbdb-lisp-directory (concat gnus-emacs-lisp-directory
|
78
|
68 "site-lisp/bbdb-1.51/")
|
0
|
69 "Directory where Big Brother Database is found.")
|
|
70
|
78
|
71 (defvar gnus-use-tm running-xemacs
|
0
|
72 "Set this if you want MIME support for Gnus")
|
|
73 (defvar gnus-use-mhe nil
|
|
74 "Set this if you want to use MH-E for mail reading")
|
|
75 (defvar gnus-use-rmail nil
|
|
76 "Set this if you want to use RMAIL for mail reading")
|
|
77 (defvar gnus-use-sendmail t
|
|
78 "Set this if you want to use SENDMAIL for mail reading")
|
|
79 (defvar gnus-use-vm nil
|
|
80 "Set this if you want to use the VM package for mail reading")
|
70
|
81 (defvar gnus-use-sc t
|
0
|
82 "Set this if you want to use Supercite")
|
|
83 (defvar gnus-use-mailcrypt t
|
|
84 "Set this if you want to use Mailcrypt for dealing with PGP messages")
|
|
85 (defvar gnus-use-bbdb nil
|
|
86 "Set this if you want to use the Big Brother DataBase")
|
70
|
87 (defvar gnus-use-september nil
|
|
88 "Set this if you are using the experimental September Gnus")
|
0
|
89
|
78
|
90 (when (and (not gnus-use-installed-gnus)
|
|
91 (null (member gnus-gnus-lisp-directory load-path)))
|
|
92 (setq load-path (cons gnus-gnus-lisp-directory load-path)))
|
|
93
|
|
94 (require 'message)
|
0
|
95
|
|
96 ;;; Tools for MIME by
|
|
97 ;;; UMEDA Masanobu <umerin@mse.kyutech.ac.jp>
|
|
98 ;;; MORIOKA Tomohiko <morioka@jaist.ac.jp>
|
|
99
|
78
|
100 (when gnus-use-tm
|
|
101 (when (and (not gnus-use-installed-tm)
|
|
102 (null (member gnus-tm-lisp-directory load-path)))
|
|
103 (setq load-path (cons gnus-tm-lisp-directory load-path)))
|
|
104 ;; tm may or may not be dumped with XEmacs. In Sunpro it is, otherwise
|
|
105 ;; it isn't.
|
|
106 (unless (featurep 'mime-setup)
|
|
107 (load "mime-setup")))
|
0
|
108
|
|
109 ;;; Mailcrypt by
|
|
110 ;;; Jin Choi <jin@atype.com>
|
|
111 ;;; Patrick LoPresti <patl@lcs.mit.edu>
|
|
112
|
78
|
113 (when gnus-use-mailcrypt
|
|
114 (when (and (not gnus-use-installed-mailcrypt)
|
|
115 (null (member gnus-mailcrypt-lisp-directory load-path)))
|
|
116 (setq load-path (cons gnus-mailcrypt-lisp-directory load-path)))
|
|
117 (autoload 'mc-install-write-mode "mailcrypt" nil t)
|
|
118 (autoload 'mc-install-read-mode "mailcrypt" nil t)
|
|
119 (add-hook 'message-mode-hook 'mc-install-write-mode)
|
|
120 (add-hook 'gnus-summary-mode-hook 'mc-install-read-mode)
|
|
121 (when gnus-use-mhe
|
|
122 (add-hook 'mh-folder-mode-hook 'mc-install-read-mode)
|
|
123 (add-hook 'mh-letter-mode-hook 'mc-install-write-mode)))
|
0
|
124
|
|
125 ;;; BBDB by
|
78
|
126 ;;; Jamie Zawinski <jwz@netscape.com>
|
0
|
127
|
78
|
128 (when gnus-use-bbdb
|
|
129 ;; bbdb will never be installed with emacs.
|
|
130 (when (null (member gnus-bbdb-lisp-directory load-path))
|
|
131 (setq load-path (cons gnus-bbdb-lisp-directory load-path)))
|
|
132 (autoload 'bbdb "bbdb-com"
|
|
133 "Insidious Big Brother Database" t)
|
|
134 (autoload 'bbdb-name "bbdb-com"
|
|
135 "Insidious Big Brother Database" t)
|
|
136 (autoload 'bbdb-company "bbdb-com"
|
|
137 "Insidious Big Brother Database" t)
|
|
138 (autoload 'bbdb-net "bbdb-com"
|
|
139 "Insidious Big Brother Database" t)
|
|
140 (autoload 'bbdb-notes "bbdb-com"
|
|
141 "Insidious Big Brother Database" t)
|
0
|
142
|
78
|
143 (when gnus-use-vm
|
|
144 (autoload 'bbdb-insinuate-vm "bbdb-vm"
|
|
145 "Hook BBDB into VM" t))
|
0
|
146
|
78
|
147 (when gnus-use-rmail
|
|
148 (autoload 'bbdb-insinuate-rmail "bbdb-rmail"
|
|
149 "Hook BBDB into RMAIL" t)
|
|
150 (add-hook 'rmail-mode-hook 'bbdb-insinuate-rmail))
|
0
|
151
|
78
|
152 (when gnus-use-mhe
|
|
153 (autoload 'bbdb-insinuate-mh "bbdb-mh"
|
|
154 "Hook BBDB into MH-E" t)
|
|
155 (add-hook 'mh-folder-mode-hook 'bbdb-insinuate-mh))
|
0
|
156
|
78
|
157 (autoload 'bbdb-insinuate-gnus "bbdb-gnus"
|
|
158 "Hook BBDB into Gnus" t)
|
|
159 (add-hook 'gnus-startup-hook 'bbdb-insinuate-gnus)
|
0
|
160
|
78
|
161 (when gnus-use-sendmail
|
|
162 (autoload 'bbdb-insinuate-sendmail "bbdb"
|
|
163 "Insidious Big Brother Database" t)
|
|
164 (add-hook 'mail-setup-hook 'bbdb-insinuate-sendmail)
|
|
165 (add-hook 'message-setup-hook 'bbdb-insinuate-sendmail)))
|
0
|
166
|
78
|
167 (when gnus-use-sc
|
|
168 (add-hook 'mail-citation-hook 'sc-cite-original)
|
|
169 (setq message-cite-function 'sc-cite-original)
|
|
170 (autoload 'sc-cite-original "supercite"))
|
0
|
171
|
70
|
172 ;;;### (autoloads (gnus-batch-score gnus-fetch-group gnus gnus-slave gnus-no-server gnus-update-format) "gnus" "lisp/gnus.el" (12473 2137))
|
0
|
173 ;;; Generated autoloads from lisp/gnus.el
|
|
174
|
78
|
175 ;; Don't redo this if autoloads already exist
|
|
176 (unless (fboundp 'gnus)
|
|
177 (autoload 'gnus-update-format "gnus" "\
|
70
|
178 Update the format specification near point." t nil)
|
|
179
|
78
|
180 (autoload 'gnus-slave-no-server "gnus" "\
|
0
|
181 Read network news as a slave without connecting to local server." t nil)
|
|
182
|
78
|
183 (autoload 'gnus-no-server "gnus" "\
|
0
|
184 Read network news.
|
|
185 If ARG is a positive number, Gnus will use that as the
|
70
|
186 startup level. If ARG is nil, Gnus will be started at level 2.
|
0
|
187 If ARG is non-nil and not a positive number, Gnus will
|
|
188 prompt the user for the name of an NNTP server to use.
|
78
|
189 As opposed to `gnus', this command will not connect to the local server."
|
|
190 t nil)
|
0
|
191
|
78
|
192 (autoload 'gnus-slave "gnus" "\
|
0
|
193 Read news as a slave." t nil)
|
|
194
|
78
|
195 (autoload 'gnus "gnus" "\
|
0
|
196 Read network news.
|
|
197 If ARG is non-nil and a positive number, Gnus will use that as the
|
|
198 startup level. If ARG is non-nil and not a positive number, Gnus will
|
|
199 prompt the user for the name of an NNTP server to use." t nil)
|
|
200
|
78
|
201 (autoload 'gnus-fetch-group "gnus" "\
|
0
|
202 Start Gnus if necessary and enter GROUP.
|
|
203 Returns whether the fetching was successful or not." t nil)
|
|
204
|
78
|
205 (defalias 'gnus-batch-kill 'gnus-batch-score)
|
0
|
206
|
78
|
207 (autoload 'gnus-batch-score "gnus" "\
|
0
|
208 Run batched scoring.
|
|
209 Usage: emacs -batch -l gnus -f gnus-batch-score <newsgroups> ...
|
|
210 Newsgroups is a list of strings in Bnews format. If you want to score
|
|
211 the comp hierarchy, you'd say \"comp.all\". If you would not like to
|
78
|
212 score the alt hierarchy, you'd say \"!alt.all\"." t nil))
|
70
|
213
|
|
214 ;;;***
|
0
|
215
|
|
216 (provide 'gnus-setup)
|
|
217
|
|
218 (run-hooks 'gnus-setup-load-hook)
|
|
219
|
|
220 ;;; gnus-setup.el ends here
|