]> code.delx.au - gnu-emacs/blob - lisp/paths.el
(gnus-default-nntp-server): Doc fix.
[gnu-emacs] / lisp / paths.el
1 ;;; paths.el --- define pathnames for use by various Emacs commands.
2
3 ;; Copyright (C) 1986, 1988, 1994 Free Software Foundation, Inc.
4
5 ;; Maintainer: FSF
6 ;; Keywords: internal
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
22 ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
23
24 ;;; Commentary:
25
26 ;; These are default settings for names of certain files and directories
27 ;; that Emacs needs to refer to from time to time.
28
29 ;; If these settings are not right, override them with `setq'
30 ;; in site-init.el. Do not change this file.
31
32 ;;; Code:
33
34 (defvar Info-default-directory-list
35 (let ((start (list "/usr/local/lib/info/"
36 ;; This comes second so that, if it is the same
37 ;; as configure-info-directory (which is usually true)
38 ;; and Emacs has been installed (also usually true)
39 ;; then the list will end with two copies of this;
40 ;; which means that the last dir file Info-insert-dir
41 ;; finds will be the one in this directory.
42 "/usr/local/info/"))
43 (configdir (file-name-as-directory configure-info-directory)))
44 (setq start (nconc start (list configdir)))
45 start)
46 "List of directories to search for Info documentation files.
47 They are searched in the order they are given in this list.
48 Therefore, the directory of Info files that come with Emacs
49 normally should come last (so that local files override standard ones).")
50
51 (defvar news-path "/usr/spool/news/"
52 "The root directory below which all news files are stored.")
53
54 (defvar news-inews-program
55 (cond ((file-exists-p "/usr/bin/inews") "/usr/bin/inews")
56 ((file-exists-p "/usr/local/inews") "/usr/local/inews")
57 ((file-exists-p "/usr/local/bin/inews") "/usr/local/bin/inews")
58 ((file-exists-p "/usr/lib/news/inews") "/usr/lib/news/inews")
59 (t "inews"))
60 "Program to post news.")
61
62 (defvar gnus-default-nntp-server ""
63 ;; set this to your local server
64 "The name of the host running an NNTP server.
65 The null string means use the local host as the server site.")
66
67 (defvar gnus-nntp-service "nntp"
68 "NNTP service name, usually \"nntp\" or 119).
69 Go to a local news spool if its value is nil, in which case `gnus-nntp-server'
70 should be set to `(system-name)'.")
71
72 (defvar gnus-local-domain nil
73 "*Your domain name without a host name: for example, \"ai.mit.edu\".
74 The DOMAINNAME environment variable is used instead if defined.
75 If the function `system-name' returns a fully qualified domain name,
76 there is no need to set this variable.")
77
78 (defvar gnus-local-organization nil
79 "*The name of your organization, as a string.
80 The `ORGANIZATION' environment variable is used instead if defined.")
81
82 (defvar gnus-startup-file "~/.newsrc"
83 "The file listing groups to which user is subscribed.
84 Will use `gnus-startup-file'-SERVER instead if exists.")
85
86 (defvar rmail-file-name "~/RMAIL"
87 "Name of user's primary mail file.")
88
89 (defconst rmail-spool-directory
90 (cond ((string-match "^[^-]+-[^-]+-sco3.2v4" system-configuration)
91 "/usr/spool/mail/")
92 ;; On The Bull DPX/2 /usr/spool/mail is used although
93 ;; it is usg-unix-v.
94 ((string-match "^m68k-bull-sysv3" system-configuration)
95 "/usr/spool/mail/")
96 ;; SVR4 and recent BSD are said to use this.
97 ;; Rather than trying to know precisely which systems use it,
98 ;; let's assume this dir is never used for anything else.
99 ((file-exists-p "/var/mail")
100 "/var/mail/")
101 ((memq system-type '(dgux hpux usg-unix-v unisoft-unix rtu irix))
102 "/usr/mail/")
103 (t "/usr/spool/mail/"))
104 "Name of directory used by system mailer for delivering new mail.
105 Its name should end with a slash.")
106
107 (defconst sendmail-program
108 (cond
109 ((file-exists-p "/usr/lib/sendmail") "/usr/lib/sendmail")
110 ((file-exists-p "/usr/sbin/sendmail") "/usr/sbin/sendmail")
111 ((file-exists-p "/usr/ucblib/sendmail") "/usr/ucblib/sendmail")
112 (t "fakemail")) ;In ../etc, to interface to /bin/mail.
113 "Program used to send messages.")
114
115 (defconst term-file-prefix (if (eq system-type 'vax-vms) "[.term]" "term/")
116 "If non-nil, Emacs startup does (load (concat term-file-prefix (getenv \"TERM\")))
117 You may set this variable to nil in your `.emacs' file if you do not wish
118 the terminal-initialization file to be loaded.")
119
120 (defconst abbrev-file-name
121 (if (eq system-type 'vax-vms)
122 "~/abbrev.def"
123 "~/.abbrev_defs")
124 "*Default name of file to read abbrevs from.")
125
126 ;;; paths.el ends here