Merge flim-1_10_4.
[elisp/flim.git] / FLIM-CFG
1 ;;; -*-Emacs-Lisp-*-
2
3 ;; FLIM-CFG: installation setting about FLIM.
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 (if (boundp 'LISPDIR)
13     (progn
14       (add-to-list 'default-load-path LISPDIR)
15       (add-to-list 'load-path LISPDIR)
16       (add-to-list 'load-path (expand-file-name "apel" LISPDIR))
17       ))
18
19 (defvar VERSION_SPECIFIC_LISPDIR nil)
20
21 (if VERSION_SPECIFIC_LISPDIR
22     (add-to-list 'load-path VERSION_SPECIFIC_LISPDIR))
23
24 (require 'install)
25
26 (add-latest-path "custom")
27
28 (add-path default-directory)
29
30 (or (fboundp 'write-region-as-binary)
31     (error "Please install latest APEL 7.3 or later."))
32 (or (fboundp 'insert-file-contents-as-binary)
33     (error "Please install latest APEL 7.3 or later."))
34
35
36 ;;; @ Please specify prefix of install directory.
37 ;;;
38
39 ;; Please specify install path prefix.
40 ;; If it is omitted, shared directory (maybe /usr/local is used).
41 (defvar PREFIX install-prefix)
42 ;;(setq PREFIX "~/")
43
44 ;; Please specify prefix for ``FLIM'' [optional]
45 (setq FLIM_PREFIX "flim")
46
47 \f
48
49 ;;; @ optional settings
50 ;;;
51
52 ;; It is generated by automatically. Please set variable `PREFIX'.
53 ;; If you don't like default directory tree, please set it.
54 (defvar LISPDIR (install-detect-elisp-directory PREFIX))
55 ;; (setq install-default-elisp-directory "~/lib/emacs/lisp")
56
57 (setq FLIM_DIR (expand-file-name FLIM_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 ;;; FLIM-CFG ends here