paths.el 6.48 KB
Newer Older
Eric S. Raymond's avatar
Eric S. Raymond committed
1 2
;;; paths.el --- define pathnames for use by various Emacs commands.

Karl Heuer's avatar
Karl Heuer committed
3
;; Copyright (C) 1986, 1988, 1994 Free Software Foundation, Inc.
Eric S. Raymond's avatar
Eric S. Raymond committed
4

Eric S. Raymond's avatar
Eric S. Raymond committed
5
;; Maintainer: FSF
Eric S. Raymond's avatar
Eric S. Raymond committed
6
;; Keywords: internal
Eric S. Raymond's avatar
Eric S. Raymond committed
7

root's avatar
root committed
8 9 10 11
;; This file is part of GNU Emacs.

;; GNU Emacs is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
Eric S. Raymond's avatar
Eric S. Raymond committed
12
;; the Free Software Foundation; either version 2, or (at your option)
root's avatar
root committed
13 14 15 16 17 18 19 20
;; any later version.

;; GNU Emacs is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;; GNU General Public License for more details.

;; You should have received a copy of the GNU General Public License
Erik Naggum's avatar
Erik Naggum committed
21 22 23
;; along with GNU Emacs; see the file COPYING.  If not, write to the
;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
;; Boston, MA 02111-1307, USA.
root's avatar
root committed
24

Eric S. Raymond's avatar
Eric S. Raymond committed
25
;;; Commentary:
root's avatar
root committed
26 27 28 29 30 31 32

;; These are default settings for names of certain files and directories
;; that Emacs needs to refer to from time to time.

;; If these settings are not right, override them with `setq'
;; in site-init.el.  Do not change this file.

Eric S. Raymond's avatar
Eric S. Raymond committed
33 34
;;; Code:

Roland McGrath's avatar
Roland McGrath committed
35
(defvar Info-default-directory-list
36 37 38 39 40 41 42 43
  (let ((start (list "/usr/local/lib/info/"
		     ;; This comes second so that, if it is the same
		     ;; as configure-info-directory (which is usually true)
		     ;; and Emacs has been installed (also usually true)
		     ;; then the list will end with two copies of this;
		     ;; which means that the last dir file Info-insert-dir
		     ;; finds will be the one in this directory.
		     "/usr/local/info/"))
Richard M. Stallman's avatar
Richard M. Stallman committed
44
	(configdir (file-name-as-directory configure-info-directory)))
45
    (setq start (nconc start (list configdir)))
46
    start)
47 48
  "Default list of directories to search for Info documentation files.
They are searched in the order they are given in the list.
49
Therefore, the directory of Info files that come with Emacs
50 51 52 53 54 55
normally should come last (so that local files override standard ones).

Once Info is started, the list of directories to search
comes from the variable `Info-directory-list'.
This variable `Info-default-directory-list' is used as the default
for initializing `Info-directory-list' when Info is started.")
root's avatar
root committed
56

57 58 59 60
(defvar news-path
  (if (file-exists-p "/usr/spool/news/")
      "/usr/spool/news/"
    "/var/spool/news/")
root's avatar
root committed
61 62 63 64 65 66
  "The root directory below which all news files are stored.")

(defvar news-inews-program
  (cond ((file-exists-p "/usr/bin/inews") "/usr/bin/inews")
	((file-exists-p "/usr/local/inews") "/usr/local/inews")
	((file-exists-p "/usr/local/bin/inews") "/usr/local/bin/inews")
67
	((file-exists-p "/usr/contrib/lib/news/inews") "/usr/contrib/lib/news/inews")
root's avatar
root committed
68 69 70 71 72 73 74
	((file-exists-p "/usr/lib/news/inews") "/usr/lib/news/inews")
	(t "inews"))
  "Program to post news.")

(defvar gnus-default-nntp-server ""
  ;; set this to your local server
  "The name of the host running an NNTP server.
75
The null string means use the local host as the server site.")
root's avatar
root committed
76 77 78

(defvar gnus-nntp-service "nntp"
  "NNTP service name, usually \"nntp\" or 119).
root's avatar
root committed
79 80
Go to a local news spool if its value is nil, in which case `gnus-nntp-server'
should be set to `(system-name)'.")
root's avatar
root committed
81

82
(defvar gnus-local-domain nil
83 84 85 86
  "*Your domain name without a host name: for example, \"ai.mit.edu\".
The DOMAINNAME environment variable is used instead if defined.
If the function `system-name' returns a fully qualified domain name,
there is no need to set this variable.")
root's avatar
root committed
87

88 89
(defvar gnus-local-organization nil
  "*The name of your organization, as a string.
root's avatar
root committed
90 91 92 93 94 95
The `ORGANIZATION' environment variable is used instead if defined.")

(defvar gnus-startup-file "~/.newsrc"
  "The file listing groups to which user is subscribed.
Will use `gnus-startup-file'-SERVER instead if exists.")

96 97 98
(defvar rmail-file-name "~/RMAIL"
  "Name of user's primary mail file.")

root's avatar
root committed
99
(defconst rmail-spool-directory
100 101
  (cond ((string-match "^[^-]+-[^-]+-sco3.2v4" system-configuration)
	 "/usr/spool/mail/")
102 103 104 105
	;; On The Bull DPX/2 /usr/spool/mail is used although 
	;; it is usg-unix-v.
	((string-match "^m68k-bull-sysv3" system-configuration)
	 "/usr/spool/mail/")
106 107 108 109
	;; SVR4 and recent BSD are said to use this.
	;; Rather than trying to know precisely which systems use it,
	;; let's assume this dir is never used for anything else.
	((file-exists-p "/var/mail")
110
	 "/var/mail/")
111 112
	;; Many GNU/Linux systems use this name.
	((file-exists-p "/var/spool/mail")
113
	 "/var/spool/mail/")
114
	((memq system-type '(dgux hpux usg-unix-v unisoft-unix rtu irix))
115 116
	 "/usr/mail/")
	(t "/usr/spool/mail/"))
root's avatar
root committed
117 118 119 120
  "Name of directory used by system mailer for delivering new mail.
Its name should end with a slash.")

(defconst sendmail-program
121 122 123 124 125
  (cond
    ((file-exists-p "/usr/lib/sendmail") "/usr/lib/sendmail")
    ((file-exists-p "/usr/sbin/sendmail") "/usr/sbin/sendmail")
    ((file-exists-p "/usr/ucblib/sendmail") "/usr/ucblib/sendmail")
    (t "fakemail"))			;In ../etc, to interface to /bin/mail.
root's avatar
root committed
126 127
  "Program used to send messages.")

Karl Heuer's avatar
Karl Heuer committed
128 129 130 131 132 133
(defconst remote-shell-program
  (cond
   ;; Some systems use rsh for the remote shell; others use that name for the
   ;; restricted shell and use remsh for the remote shell.  Let's try to guess
   ;; based on what we actually find out there.  The restricted shell is
   ;; almost certainly in /bin or /usr/bin, so it's probably safe to assume
134 135
   ;; that an rsh found elsewhere is the remote shell program.  The converse
   ;; is not true: /usr/bin/rsh could be either one, so check that last.
Karl Heuer's avatar
Karl Heuer committed
136
   ((file-exists-p "/usr/ucb/remsh") "/usr/ucb/remsh")
137
   ((file-exists-p "/usr/bsd/remsh") "/usr/bsd/remsh")
Karl Heuer's avatar
Karl Heuer committed
138
   ((file-exists-p "/bin/remsh") "/bin/remsh")
139
   ((file-exists-p "/usr/bin/remsh") "/usr/bin/remsh")
140 141 142
   ((file-exists-p "/usr/local/bin/remsh") "/usr/local/bin/remsh")
   ((file-exists-p "/usr/ucb/rsh") "/usr/ucb/rsh")
   ((file-exists-p "/usr/bsd/rsh") "/usr/bsd/rsh")
Karl Heuer's avatar
Karl Heuer committed
143
   ((file-exists-p "/usr/local/bin/rsh") "/usr/local/bin/rsh")
144 145
   ((file-exists-p "/usr/bin/rcmd") "/usr/bin/rcmd")
   ((file-exists-p "/bin/rcmd") "/bin/rcmd")
146 147
   ((file-exists-p "/bin/rsh") "/bin/rsh")
   ((file-exists-p "/usr/bin/rsh") "/usr/bin/rsh")
Karl Heuer's avatar
Karl Heuer committed
148 149
   (t "rsh")))

root's avatar
root committed
150 151 152 153 154 155 156 157
(defconst term-file-prefix (if (eq system-type 'vax-vms) "[.term]" "term/")
  "If non-nil, Emacs startup does (load (concat term-file-prefix (getenv \"TERM\")))
You may set this variable to nil in your `.emacs' file if you do not wish
the terminal-initialization file to be loaded.")

(defconst abbrev-file-name 
  (if (eq system-type 'vax-vms)
      "~/abbrev.def"
158
    (convert-standard-filename "~/.abbrev_defs"))
root's avatar
root committed
159
  "*Default name of file to read abbrevs from.")
Eric S. Raymond's avatar
Eric S. Raymond committed
160 161

;;; paths.el ends here