(string-compare-from-top): Don't use `aref'.
[elisp/mu-cite.git] / MU-CFG
1 ;;; -*-Emacs-Lisp-*-
2
3 ;; MU-CFG: installation setting about mu-cite.
4
5 ;;; Code:
6
7 (defvar default-load-path load-path)
8
9 (add-to-list 'load-path
10              (expand-file-name "../../site-lisp/apel" data-directory))
11
12 (add-to-list 'load-path
13              (expand-file-name "../../site-lisp/flim" data-directory))
14
15 (if (boundp 'LISPDIR)
16     (progn
17       (add-to-list 'default-load-path LISPDIR)
18       (add-to-list 'load-path LISPDIR)
19       (add-to-list 'load-path (expand-file-name "apel" LISPDIR))
20       (add-to-list 'load-path (expand-file-name "flim" LISPDIR))
21       ))
22
23 (if (boundp 'VERSION_SPECIFIC_LISPDIR)
24     (add-to-list 'load-path VERSION_SPECIFIC_LISPDIR))
25
26 (require 'install)
27
28 (add-latest-path "custom")
29
30 (add-path default-directory)
31
32
33 ;;; @ Please specify prefix of install directory.
34 ;;;
35
36 ;; Please specify install path prefix.
37 ;; If it is omitted, shared directory (maybe /usr/local is used).
38 (defvar PREFIX install-prefix)
39 ;;(setq PREFIX "~/")
40
41 ;; Please specify prefix for ``mu'' [optional]
42 (setq MU_PREFIX "mu")
43
44 \f
45
46 ;;; @ optional settings
47 ;;;
48
49 ;; It is generated by automatically. Please set variable `PREFIX'.
50 ;; If you don't like default directory tree, please set it.
51 (defvar LISPDIR (install-detect-elisp-directory PREFIX))
52 ;; (setq install-default-elisp-directory "~/lib/emacs/lisp")
53
54 (defvar VERSION_SPECIFIC_LISPDIR
55   (install-detect-elisp-directory PREFIX nil 'version-specific))
56
57 (setq MU_DIR (expand-file-name MU_PREFIX LISPDIR))
58
59 (defvar PACKAGEDIR
60   (if (boundp 'early-packages)
61       (let ((dirs (append (if early-package-load-path
62                               early-packages)
63                           (if late-package-load-path
64                               late-packages)
65                           (if last-package-load-path
66                               last-packages)))
67             dir)
68         (while (not (file-exists-p
69                      (setq dir (car dirs))))
70           (setq dirs (cdr dirs)))
71         dir)))
72
73 ;;; MU-CFG ends here