Mercurial > emacs
annotate lisp/gnus/gnus-setup.el @ 34395:2f4a4d355834
(time-stamp-old-format-warn): reorder custom
choices to match documentation string.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Sat, 09 Dec 2000 13:22:51 +0000 |
parents | cc4ecf70b62f |
children | fd46b047a7bc |
rev | line source |
---|---|
17493 | 1 ;;; gnus-setup.el --- Initialization & Setup for Gnus 5 |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
19494
diff
changeset
|
2 |
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
19494
diff
changeset
|
3 ;; Copyright (C) 1995, 1996, 2000 Free Software Foundation, Inc. |
17493 | 4 |
5 ;; Author: Steven L. Baur <steve@miranova.com> | |
6 ;; Keywords: news | |
7 | |
8 ;; This file is part of GNU Emacs. | |
9 | |
10 ;; GNU Emacs is free software; you can redistribute it and/or modify | |
11 ;; it under the terms of the GNU General Public License as published by | |
12 ;; the Free Software Foundation; either version 2, or (at your option) | |
13 ;; any later version. | |
14 | |
15 ;; GNU Emacs is distributed in the hope that it will be useful, | |
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18 ;; GNU General Public License for more details. | |
19 | |
20 ;; You should have received a copy of the GNU General Public License | |
21 ;; along with GNU Emacs; see the file COPYING. If not, write to the | |
22 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
23 ;; Boston, MA 02111-1307, USA. | |
24 | |
25 ;;; Commentary: | |
26 ;; My head is starting to spin with all the different mail/news packages. | |
27 ;; Stop The Madness! | |
28 | |
29 ;; Given that Emacs Lisp byte codes may be diverging, it is probably best | |
30 ;; not to byte compile this, and just arrange to have the .el loaded out | |
31 ;; of .emacs. | |
32 | |
33 ;;; Code: | |
34 | |
19494
4280cff25537
Require cl only at compile time.
Richard M. Stallman <rms@gnu.org>
parents:
17493
diff
changeset
|
35 (eval-when-compile (require 'cl)) |
17493 | 36 |
37 (defvar gnus-use-installed-gnus t | |
38 "*If non-nil Use installed version of Gnus.") | |
39 | |
33334
cc4ecf70b62f
(running-xemacs, gnus-use-installed-tm)
Dave Love <fx@gnu.org>
parents:
31716
diff
changeset
|
40 (defvar gnus-use-installed-mailcrypt (featurep 'xemacs) |
17493 | 41 "*If non-nil use installed version of mailcrypt.") |
42 | |
33334
cc4ecf70b62f
(running-xemacs, gnus-use-installed-tm)
Dave Love <fx@gnu.org>
parents:
31716
diff
changeset
|
43 (defvar gnus-emacs-lisp-directory (if (featurep 'xemacs) |
17493 | 44 "/usr/local/lib/xemacs/" |
45 "/usr/local/share/emacs/") | |
46 "Directory where Emacs site lisp is located.") | |
47 | |
48 (defvar gnus-gnus-lisp-directory (concat gnus-emacs-lisp-directory | |
33334
cc4ecf70b62f
(running-xemacs, gnus-use-installed-tm)
Dave Love <fx@gnu.org>
parents:
31716
diff
changeset
|
49 "gnus/lisp/") |
17493 | 50 "Directory where Gnus Emacs lisp is found.") |
51 | |
52 (defvar gnus-mailcrypt-lisp-directory (concat gnus-emacs-lisp-directory | |
33334
cc4ecf70b62f
(running-xemacs, gnus-use-installed-tm)
Dave Love <fx@gnu.org>
parents:
31716
diff
changeset
|
53 "site-lisp/mailcrypt/") |
17493 | 54 "Directory where Mailcrypt Emacs Lisp is found.") |
55 | |
56 (defvar gnus-bbdb-lisp-directory (concat gnus-emacs-lisp-directory | |
33334
cc4ecf70b62f
(running-xemacs, gnus-use-installed-tm)
Dave Love <fx@gnu.org>
parents:
31716
diff
changeset
|
57 "site-lisp/bbdb/") |
17493 | 58 "Directory where Big Brother Database is found.") |
59 | |
60 (defvar gnus-use-mhe nil | |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
19494
diff
changeset
|
61 "Set this if you want to use MH-E for mail reading.") |
17493 | 62 (defvar gnus-use-rmail nil |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
19494
diff
changeset
|
63 "Set this if you want to use RMAIL for mail reading.") |
17493 | 64 (defvar gnus-use-sendmail t |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
19494
diff
changeset
|
65 "Set this if you want to use SENDMAIL for mail reading.") |
17493 | 66 (defvar gnus-use-vm nil |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
19494
diff
changeset
|
67 "Set this if you want to use the VM package for mail reading.") |
17493 | 68 (defvar gnus-use-sc nil |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
19494
diff
changeset
|
69 "Set this if you want to use Supercite.") |
17493 | 70 (defvar gnus-use-mailcrypt t |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
19494
diff
changeset
|
71 "Set this if you want to use Mailcrypt for dealing with PGP messages.") |
17493 | 72 (defvar gnus-use-bbdb nil |
31716
9968f55ad26e
Update to emacs-21-branch of the Gnus CVS repository.
Gerd Moellmann <gerd@gnu.org>
parents:
19494
diff
changeset
|
73 "Set this if you want to use the Big Brother DataBase.") |
17493 | 74 |
75 (when (and (not gnus-use-installed-gnus) | |
76 (null (member gnus-gnus-lisp-directory load-path))) | |
77 (push gnus-gnus-lisp-directory load-path)) | |
78 | |
79 ;;; We can't do this until we know where Gnus is. | |
80 (require 'message) | |
81 | |
82 ;;; Mailcrypt by | |
83 ;;; Jin Choi <jin@atype.com> | |
84 ;;; Patrick LoPresti <patl@lcs.mit.edu> | |
85 | |
86 (when gnus-use-mailcrypt | |
87 (when (and (not gnus-use-installed-mailcrypt) | |
88 (null (member gnus-mailcrypt-lisp-directory load-path))) | |
89 (setq load-path (cons gnus-mailcrypt-lisp-directory load-path))) | |
90 (autoload 'mc-install-write-mode "mailcrypt" nil t) | |
91 (autoload 'mc-install-read-mode "mailcrypt" nil t) | |
92 (add-hook 'message-mode-hook 'mc-install-write-mode) | |
93 (add-hook 'gnus-summary-mode-hook 'mc-install-read-mode) | |
94 (when gnus-use-mhe | |
95 (add-hook 'mh-folder-mode-hook 'mc-install-read-mode) | |
96 (add-hook 'mh-letter-mode-hook 'mc-install-write-mode))) | |
97 | |
98 ;;; BBDB by | |
99 ;;; Jamie Zawinski <jwz@lucid.com> | |
100 | |
101 (when gnus-use-bbdb | |
102 ;; bbdb will never be installed with emacs. | |
103 (when (null (member gnus-bbdb-lisp-directory load-path)) | |
104 (setq load-path (cons gnus-bbdb-lisp-directory load-path))) | |
105 (autoload 'bbdb "bbdb-com" | |
106 "Insidious Big Brother Database" t) | |
107 (autoload 'bbdb-name "bbdb-com" | |
108 "Insidious Big Brother Database" t) | |
109 (autoload 'bbdb-company "bbdb-com" | |
110 "Insidious Big Brother Database" t) | |
111 (autoload 'bbdb-net "bbdb-com" | |
112 "Insidious Big Brother Database" t) | |
113 (autoload 'bbdb-notes "bbdb-com" | |
114 "Insidious Big Brother Database" t) | |
115 | |
116 (when gnus-use-vm | |
117 (autoload 'bbdb-insinuate-vm "bbdb-vm" | |
118 "Hook BBDB into VM" t)) | |
119 | |
120 (when gnus-use-rmail | |
121 (autoload 'bbdb-insinuate-rmail "bbdb-rmail" | |
122 "Hook BBDB into RMAIL" t) | |
123 (add-hook 'rmail-mode-hook 'bbdb-insinuate-rmail)) | |
124 | |
125 (when gnus-use-mhe | |
126 (autoload 'bbdb-insinuate-mh "bbdb-mh" | |
127 "Hook BBDB into MH-E" t) | |
128 (add-hook 'mh-folder-mode-hook 'bbdb-insinuate-mh)) | |
129 | |
130 (autoload 'bbdb-insinuate-gnus "bbdb-gnus" | |
131 "Hook BBDB into Gnus" t) | |
132 (add-hook 'gnus-startup-hook 'bbdb-insinuate-gnus) | |
133 | |
134 (when gnus-use-sendmail | |
135 (autoload 'bbdb-insinuate-sendmail "bbdb" | |
136 "Insidious Big Brother Database" t) | |
137 (add-hook 'mail-setup-hook 'bbdb-insinuate-sendmail) | |
138 (add-hook 'message-setup-hook 'bbdb-insinuate-sendmail))) | |
139 | |
140 (when gnus-use-sc | |
141 (add-hook 'mail-citation-hook 'sc-cite-original) | |
142 (setq message-cite-function 'sc-cite-original) | |
143 (autoload 'sc-cite-original "supercite")) | |
144 | |
145 ;;;### (autoloads (gnus gnus-slave gnus-no-server) "gnus" "lisp/gnus.el" (12473 2137)) | |
146 ;;; Generated autoloads from lisp/gnus.el | |
147 | |
148 ;; Don't redo this if autoloads already exist | |
149 (unless (fboundp 'gnus) | |
150 (autoload 'gnus-slave-no-server "gnus" "\ | |
151 Read network news as a slave without connecting to local server." t nil) | |
152 | |
153 (autoload 'gnus-no-server "gnus" "\ | |
154 Read network news. | |
155 If ARG is a positive number, Gnus will use that as the | |
156 startup level. If ARG is nil, Gnus will be started at level 2. | |
157 If ARG is non-nil and not a positive number, Gnus will | |
158 prompt the user for the name of an NNTP server to use. | |
159 As opposed to `gnus', this command will not connect to the local server." t nil) | |
160 | |
161 (autoload 'gnus-slave "gnus" "\ | |
162 Read news as a slave." t nil) | |
163 | |
164 (autoload 'gnus "gnus" "\ | |
165 Read network news. | |
166 If ARG is non-nil and a positive number, Gnus will use that as the | |
167 startup level. If ARG is non-nil and not a positive number, Gnus will | |
168 prompt the user for the name of an NNTP server to use." t nil) | |
169 | |
170 ;;;*** | |
171 | |
172 ;;; These have moved out of gnus.el into other files. | |
173 ;;; FIX FIX FIX: should other things be in gnus-setup? or these not in it? | |
174 (autoload 'gnus-update-format "gnus-spec" "\ | |
175 Update the format specification near point." t nil) | |
176 | |
177 (autoload 'gnus-fetch-group "gnus-group" "\ | |
178 Start Gnus if necessary and enter GROUP. | |
179 Returns whether the fetching was successful or not." t nil) | |
180 | |
181 (defalias 'gnus-batch-kill 'gnus-batch-score) | |
182 | |
183 (autoload 'gnus-batch-score "gnus-kill" "\ | |
184 Run batched scoring. | |
185 Usage: emacs -batch -l gnus -f gnus-batch-score <newsgroups> ... | |
186 Newsgroups is a list of strings in Bnews format. If you want to score | |
187 the comp hierarchy, you'd say \"comp.all\". If you would not like to | |
188 score the alt hierarchy, you'd say \"!alt.all\"." t nil)) | |
189 | |
190 (provide 'gnus-setup) | |
191 | |
192 (run-hooks 'gnus-setup-load-hook) | |
193 | |
194 ;;; gnus-setup.el ends here |