Mercurial > emacs
annotate lisp/gnus/gnus-setup.el @ 112268:4e6ae7191e28
* building.texi (Compilation): Improve instructions for running two compilations (Bug#7573).
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Fri, 14 Jan 2011 22:10:38 -0500 |
parents | 376148b31b5e |
children | 417b1e4d63cd |
rev | line source |
---|---|
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
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 |
64754
fafd692d1e40
Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents:
64085
diff
changeset
|
3 ;; Copyright (C) 1995, 1996, 2000, 2001, 2002, 2003, 2004, |
112218
376148b31b5e
Add 2011 to FSF/AIST copyright years.
Glenn Morris <rgm@gnu.org>
parents:
106815
diff
changeset
|
4 ;; 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. |
17493 | 5 |
6 ;; Author: Steven L. Baur <steve@miranova.com> | |
7 ;; Keywords: news | |
8 | |
9 ;; This file is part of GNU Emacs. | |
10 | |
94662
f42ef85caf91
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
93975
diff
changeset
|
11 ;; GNU Emacs is free software: you can redistribute it and/or modify |
17493 | 12 ;; it under the terms of the GNU General Public License as published by |
94662
f42ef85caf91
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
93975
diff
changeset
|
13 ;; the Free Software Foundation, either version 3 of the License, or |
f42ef85caf91
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
93975
diff
changeset
|
14 ;; (at your option) any later version. |
17493 | 15 |
16 ;; GNU Emacs is distributed in the hope that it will be useful, | |
17 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
19 ;; GNU General Public License for more details. | |
20 | |
21 ;; You should have received a copy of the GNU General Public License | |
94662
f42ef85caf91
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
93975
diff
changeset
|
22 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. |
17493 | 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 | |
32 ;;; Code: | |
33 | |
19494
4280cff25537
Require cl only at compile time.
Richard M. Stallman <rms@gnu.org>
parents:
17493
diff
changeset
|
34 (eval-when-compile (require 'cl)) |
17493 | 35 |
36 (defvar gnus-use-installed-gnus t | |
38399 | 37 "*If non-nil use installed version of Gnus.") |
17493 | 38 |
33334
cc4ecf70b62f
(running-xemacs, gnus-use-installed-tm)
Dave Love <fx@gnu.org>
parents:
31716
diff
changeset
|
39 (defvar gnus-use-installed-mailcrypt (featurep 'xemacs) |
17493 | 40 "*If non-nil use installed version of mailcrypt.") |
41 | |
33334
cc4ecf70b62f
(running-xemacs, gnus-use-installed-tm)
Dave Love <fx@gnu.org>
parents:
31716
diff
changeset
|
42 (defvar gnus-emacs-lisp-directory (if (featurep 'xemacs) |
17493 | 43 "/usr/local/lib/xemacs/" |
44 "/usr/local/share/emacs/") | |
45 "Directory where Emacs site lisp is located.") | |
46 | |
47 (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
|
48 "gnus/lisp/") |
17493 | 49 "Directory where Gnus Emacs lisp is found.") |
50 | |
51 (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
|
52 "site-lisp/mailcrypt/") |
17493 | 53 "Directory where Mailcrypt Emacs Lisp is found.") |
54 | |
55 (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
|
56 "site-lisp/bbdb/") |
17493 | 57 "Directory where Big Brother Database is found.") |
58 | |
59 (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
|
60 "Set this if you want to use MH-E for mail reading.") |
17493 | 61 (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
|
62 "Set this if you want to use RMAIL for mail reading.") |
17493 | 63 (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
|
64 "Set this if you want to use SENDMAIL for mail reading.") |
17493 | 65 (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
|
66 "Set this if you want to use the VM package for mail reading.") |
17493 | 67 (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
|
68 "Set this if you want to use Supercite.") |
17493 | 69 (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
|
70 "Set this if you want to use Mailcrypt for dealing with PGP messages.") |
17493 | 71 (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
|
72 "Set this if you want to use the Big Brother DataBase.") |
17493 | 73 |
74 (when (and (not gnus-use-installed-gnus) | |
75 (null (member gnus-gnus-lisp-directory load-path))) | |
76 (push gnus-gnus-lisp-directory load-path)) | |
77 | |
78 ;;; We can't do this until we know where Gnus is. | |
79 (require 'message) | |
80 | |
81 ;;; Mailcrypt by | |
82 ;;; Jin Choi <jin@atype.com> | |
83 ;;; Patrick LoPresti <patl@lcs.mit.edu> | |
84 | |
85 (when gnus-use-mailcrypt | |
86 (when (and (not gnus-use-installed-mailcrypt) | |
87 (null (member gnus-mailcrypt-lisp-directory load-path))) | |
88 (setq load-path (cons gnus-mailcrypt-lisp-directory load-path))) | |
89 (autoload 'mc-install-write-mode "mailcrypt" nil t) | |
90 (autoload 'mc-install-read-mode "mailcrypt" nil t) | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
91 ;;; (add-hook 'message-mode-hook 'mc-install-write-mode) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
92 ;;; (add-hook 'gnus-summary-mode-hook 'mc-install-read-mode) |
17493 | 93 (when gnus-use-mhe |
94 (add-hook 'mh-folder-mode-hook 'mc-install-read-mode) | |
95 (add-hook 'mh-letter-mode-hook 'mc-install-write-mode))) | |
96 | |
97 ;;; BBDB by | |
98 ;;; Jamie Zawinski <jwz@lucid.com> | |
99 | |
100 (when gnus-use-bbdb | |
101 ;; bbdb will never be installed with emacs. | |
102 (when (null (member gnus-bbdb-lisp-directory load-path)) | |
103 (setq load-path (cons gnus-bbdb-lisp-directory load-path))) | |
104 (autoload 'bbdb "bbdb-com" | |
105 "Insidious Big Brother Database" t) | |
106 (autoload 'bbdb-name "bbdb-com" | |
107 "Insidious Big Brother Database" t) | |
108 (autoload 'bbdb-company "bbdb-com" | |
109 "Insidious Big Brother Database" t) | |
110 (autoload 'bbdb-net "bbdb-com" | |
111 "Insidious Big Brother Database" t) | |
112 (autoload 'bbdb-notes "bbdb-com" | |
113 "Insidious Big Brother Database" t) | |
114 | |
115 (when gnus-use-vm | |
116 (autoload 'bbdb-insinuate-vm "bbdb-vm" | |
117 "Hook BBDB into VM" t)) | |
118 | |
119 (when gnus-use-rmail | |
120 (autoload 'bbdb-insinuate-rmail "bbdb-rmail" | |
121 "Hook BBDB into RMAIL" t) | |
122 (add-hook 'rmail-mode-hook 'bbdb-insinuate-rmail)) | |
123 | |
124 (when gnus-use-mhe | |
125 (autoload 'bbdb-insinuate-mh "bbdb-mh" | |
126 "Hook BBDB into MH-E" t) | |
127 (add-hook 'mh-folder-mode-hook 'bbdb-insinuate-mh)) | |
128 | |
129 (autoload 'bbdb-insinuate-gnus "bbdb-gnus" | |
130 "Hook BBDB into Gnus" t) | |
131 (add-hook 'gnus-startup-hook 'bbdb-insinuate-gnus) | |
132 | |
133 (when gnus-use-sendmail | |
134 (autoload 'bbdb-insinuate-sendmail "bbdb" | |
135 "Insidious Big Brother Database" t) | |
136 (add-hook 'mail-setup-hook 'bbdb-insinuate-sendmail) | |
137 (add-hook 'message-setup-hook 'bbdb-insinuate-sendmail))) | |
138 | |
139 (when gnus-use-sc | |
140 (add-hook 'mail-citation-hook 'sc-cite-original) | |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
78224
diff
changeset
|
141 (setq message-cite-function 'sc-cite-original)) |
17493 | 142 |
143 ;;;### (autoloads (gnus gnus-slave gnus-no-server) "gnus" "lisp/gnus.el" (12473 2137)) | |
144 ;;; Generated autoloads from lisp/gnus.el | |
145 | |
146 ;; Don't redo this if autoloads already exist | |
147 (unless (fboundp 'gnus) | |
148 (autoload 'gnus-slave-no-server "gnus" "\ | |
149 Read network news as a slave without connecting to local server." t nil) | |
150 | |
151 (autoload 'gnus-no-server "gnus" "\ | |
152 Read network news. | |
153 If ARG is a positive number, Gnus will use that as the | |
154 startup level. If ARG is nil, Gnus will be started at level 2. | |
155 If ARG is non-nil and not a positive number, Gnus will | |
156 prompt the user for the name of an NNTP server to use. | |
157 As opposed to `gnus', this command will not connect to the local server." t nil) | |
158 | |
159 (autoload 'gnus-slave "gnus" "\ | |
160 Read news as a slave." t nil) | |
161 | |
162 (autoload 'gnus "gnus" "\ | |
163 Read network news. | |
164 If ARG is non-nil and a positive number, Gnus will use that as the | |
165 startup level. If ARG is non-nil and not a positive number, Gnus will | |
166 prompt the user for the name of an NNTP server to use." t nil) | |
167 | |
168 ;;;*** | |
169 | |
170 ;;; These have moved out of gnus.el into other files. | |
171 ;;; FIX FIX FIX: should other things be in gnus-setup? or these not in it? | |
172 (autoload 'gnus-update-format "gnus-spec" "\ | |
173 Update the format specification near point." t nil) | |
174 | |
175 (autoload 'gnus-fetch-group "gnus-group" "\ | |
176 Start Gnus if necessary and enter GROUP. | |
177 Returns whether the fetching was successful or not." t nil) | |
178 | |
179 (defalias 'gnus-batch-kill 'gnus-batch-score) | |
180 | |
181 (autoload 'gnus-batch-score "gnus-kill" "\ | |
182 Run batched scoring. | |
183 Usage: emacs -batch -l gnus -f gnus-batch-score <newsgroups> ... | |
184 Newsgroups is a list of strings in Bnews format. If you want to score | |
185 the comp hierarchy, you'd say \"comp.all\". If you would not like to | |
186 score the alt hierarchy, you'd say \"!alt.all\"." t nil)) | |
187 | |
188 (provide 'gnus-setup) | |
189 | |
190 (run-hooks 'gnus-setup-load-hook) | |
191 | |
93975
1e3a407766b9
Fix up comment convention on the arch-tag lines.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
87649
diff
changeset
|
192 ;; arch-tag: 08e4af93-8565-46bf-905c-36229400609d |
17493 | 193 ;;; gnus-setup.el ends here |