Don't add the path of "custom" to `load-path'.
[elisp/apel.git] / APEL-CFG
1 ;;; -*-Emacs-Lisp-*-
2
3 ;; APEL-CFG: installation setting about APEL.
4
5 ;;; Code:
6
7 (defvar default-load-path load-path)
8 (setq load-path (cons (expand-file-name ".") load-path))
9 (require 'install)
10
11 ;;; @ Please specify prefix of install directory.
12 ;;;
13
14 ;; Please specify install path prefix.
15 ;; If it is omitted, shared directory (maybe /usr/local is used).
16 (defvar PREFIX install-prefix)
17 ;;(setq PREFIX "~/")
18
19 ;; Please specify emu prefix [optional]
20 (setq EMU_PREFIX
21       (if (or (featurep 'xemacs)
22               (and (fboundp 'set-buffer-multibyte)
23                    (subrp (symbol-function 'set-buffer-multibyte))))
24           "emu"
25         ""))
26
27 ;; Please specify prefix for ``apel'' [optional]
28 (setq APEL_PREFIX "apel")
29
30 \f
31
32 ;;; @ optional settings
33 ;;;
34
35 (defvar VERSION_SPECIFIC_LISPDIR
36   (install-detect-elisp-directory PREFIX nil 'version-specific))
37
38 (setq EMU_DIR (expand-file-name EMU_PREFIX VERSION_SPECIFIC_LISPDIR))
39
40 ;; It is generated by automatically. Please set variable `PREFIX'.
41 ;; If you don't like default directory tree, please set it.
42 (defvar LISPDIR (install-detect-elisp-directory PREFIX))
43 ;; (setq install-default-elisp-directory "~/lib/emacs/lisp")
44
45 (setq APEL_DIR (expand-file-name APEL_PREFIX LISPDIR))
46 ;; (setq APEL_DIR (expand-file-name APEL_PREFIX VERSION_SPECIFIC_LISPDIR))
47
48 (defvar PACKAGEDIR
49   (if (boundp 'early-packages)
50       (let ((dirs (append (if early-package-load-path
51                               early-packages)
52                           (if late-package-load-path
53                               late-packages)
54                           (if last-package-load-path
55                               last-packages)))
56             dir)
57         (while (not (file-exists-p
58                      (setq dir (car dirs))))
59           (setq dirs (cdr dirs)))
60         dir)))
61
62 ;;; APEL-CFG ends here