Commit | Line | Data |
---|---|---|
6594deb0 ER |
1 | ;;; paths.el --- define pathnames for use by various Emacs commands. |
2 | ||
8f1204db | 3 | ;; Copyright (C) 1986, 1988, 1994 Free Software Foundation, Inc. |
3a801d0c | 4 | |
e5167999 | 5 | ;; Maintainer: FSF |
d7b4d18f | 6 | ;; Keywords: internal |
e5167999 | 7 | |
a0824fec | 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 | |
e5167999 | 12 | ;; the Free Software Foundation; either version 2, or (at your option) |
a0824fec | 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 | ||
e5167999 | 24 | ;;; Commentary: |
a0824fec | 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 | ||
e5167999 ER |
32 | ;;; Code: |
33 | ||
a755d8e5 | 34 | (defvar Info-default-directory-list |
9a49418b RS |
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/")) | |
540dde41 | 43 | (configdir (file-name-as-directory configure-info-directory))) |
9a49418b | 44 | (setq start (nconc start (list configdir))) |
e562af69 | 45 | start) |
feea21d1 RS |
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).") | |
a0824fec | 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. | |
d390e294 | 65 | The null string means use the local host as the server site.") |
a0824fec | 66 | |
67 | (defvar gnus-nntp-service "nntp" | |
68 | "NNTP service name, usually \"nntp\" or 119). | |
527a0f36 | 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)'.") | |
a0824fec | 71 | |
4c149073 | 72 | (defvar gnus-local-domain nil |
fe9e6906 RS |
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.") | |
a0824fec | 77 | |
fe9e6906 RS |
78 | (defvar gnus-local-organization nil |
79 | "*The name of your organization, as a string. | |
a0824fec | 80 | The `ORGANIZATION' environment variable is used instead if defined.") |
81 | ||
a0824fec | 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 | ||
5833af3a RS |
86 | (defvar rmail-file-name "~/RMAIL" |
87 | "Name of user's primary mail file.") | |
88 | ||
a0824fec | 89 | (defconst rmail-spool-directory |
d9fc020b RS |
90 | (cond ((string-match "^[^-]+-[^-]+-sco3.2v4" system-configuration) |
91 | "/usr/spool/mail/") | |
b6c96aa0 RS |
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/") | |
7a41a2e2 RS |
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") | |
fa8fb184 | 100 | "/var/mail/") |
d9fc020b | 101 | ((memq system-type '(dgux hpux usg-unix-v unisoft-unix rtu irix)) |
1eff7356 | 102 | "/usr/mail/") |
1eff7356 | 103 | (t "/usr/spool/mail/")) |
a0824fec | 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 | |
9c85ef9f RS |
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. | |
a0824fec | 113 | "Program used to send messages.") |
114 | ||
93a18127 KH |
115 | (defconst remote-shell-program |
116 | (cond | |
117 | ;; Some systems use rsh for the remote shell; others use that name for the | |
118 | ;; restricted shell and use remsh for the remote shell. Let's try to guess | |
119 | ;; based on what we actually find out there. The restricted shell is | |
120 | ;; almost certainly in /bin or /usr/bin, so it's probably safe to assume | |
66263a7d KH |
121 | ;; that an rsh found elsewhere is the remote shell program. The converse |
122 | ;; is not true: /usr/bin/rsh could be either one, so check that last. | |
93a18127 | 123 | ((file-exists-p "/usr/ucb/remsh") "/usr/ucb/remsh") |
66263a7d | 124 | ((file-exists-p "/usr/bsd/remsh") "/usr/bsd/remsh") |
93a18127 | 125 | ((file-exists-p "/bin/remsh") "/bin/remsh") |
9ade6d5e | 126 | ((file-exists-p "/usr/bin/remsh") "/usr/bin/remsh") |
66263a7d KH |
127 | ((file-exists-p "/usr/local/bin/remsh") "/usr/local/bin/remsh") |
128 | ((file-exists-p "/usr/ucb/rsh") "/usr/ucb/rsh") | |
129 | ((file-exists-p "/usr/bsd/rsh") "/usr/bsd/rsh") | |
93a18127 | 130 | ((file-exists-p "/usr/local/bin/rsh") "/usr/local/bin/rsh") |
fa195bce KH |
131 | ((file-exists-p "/usr/bin/rcmd") "/usr/bin/rcmd") |
132 | ((file-exists-p "/bin/rcmd") "/bin/rcmd") | |
66263a7d KH |
133 | ((file-exists-p "/bin/rsh") "/bin/rsh") |
134 | ((file-exists-p "/usr/bin/rsh") "/usr/bin/rsh") | |
93a18127 KH |
135 | (t "rsh"))) |
136 | ||
a0824fec | 137 | (defconst term-file-prefix (if (eq system-type 'vax-vms) "[.term]" "term/") |
138 | "If non-nil, Emacs startup does (load (concat term-file-prefix (getenv \"TERM\"))) | |
139 | You may set this variable to nil in your `.emacs' file if you do not wish | |
140 | the terminal-initialization file to be loaded.") | |
141 | ||
a0824fec | 142 | (defconst abbrev-file-name |
143 | (if (eq system-type 'vax-vms) | |
144 | "~/abbrev.def" | |
145 | "~/.abbrev_defs") | |
146 | "*Default name of file to read abbrevs from.") | |
6594deb0 ER |
147 | |
148 | ;;; paths.el ends here |