12679fd0c7ea0e728443a694c8f9557ee0b63251
[elisp/emh.git] / EMH-CFG
1 ;;; -*-Emacs-Lisp-*-
2
3 ;; EMH-CFG: installation setting about EMH.
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 (add-to-list 'load-path
12              (expand-file-name "." data-directory))
13
14 (if (boundp 'LISPDIR)
15     (progn
16       (add-to-list 'default-load-path LISPDIR)
17       (add-to-list 'load-path LISPDIR)
18       (add-to-list 'load-path (expand-file-name "apel" LISPDIR))
19       ))
20
21 (condition-case nil
22     (require 'install)
23   (error (error "Please install APEL 8.2 or later.")))
24
25 (add-path "custom")
26 (add-path "flim")
27 (add-path "semi")
28
29 (add-to-list 'load-path (expand-file-name "."))
30
31
32 ;;; @ Please specify prefix of install directory.
33 ;;;
34
35 ;; Please specify install path prefix.
36 ;; If it is omitted, shared directory (maybe /usr/local is used).
37 (defvar PREFIX install-prefix)
38 ;;(setq PREFIX "~/")
39
40 (defvar PACKAGEDIR
41   (if (boundp 'early-packages)
42       (let ((dirs (append (if early-package-load-path
43                               early-packages)
44                           (if late-package-load-path
45                               late-packages)
46                           (if last-package-load-path
47                               last-packages)))
48             dir)
49         (while (not (file-exists-p
50                      (setq dir (car dirs))))
51           (setq dirs (cdr dirs)))
52         dir)))
53
54 ;; Please specify prefix for ``emh'' [optional]
55 (setq EMH_PREFIX
56       (if PACKAGEDIR
57           "emh"
58         "semi"))
59
60 \f
61
62 ;;; @ optional settings
63 ;;;
64
65 ;; It is generated by automatically. Please set variable `PREFIX'.
66 ;; If you don't like default directory tree, please set it.
67 (defvar LISPDIR (install-detect-elisp-directory PREFIX))
68 ;; (setq install-default-elisp-directory "~/lib/emacs/lisp")
69
70 (setq EMH_DIR (expand-file-name EMH_PREFIX LISPDIR))
71
72 ;;; EMH-CFG ends here