| 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 "emu" LISPDIR)) |
| 17 |
(add-to-list 'load-path (expand-file-name "apel" LISPDIR)))) |
| 18 |
|
| 19 |
(if (boundp 'VERSION_SPECIFIC_LISPDIR) |
| 20 |
(add-to-list 'load-path VERSION_SPECIFIC_LISPDIR)) |
| 21 |
|
| 22 |
(if (boundp 'PACKAGE_LISPDIR) |
| 23 |
(let ((default-directory PACKAGE_LISPDIR)) |
| 24 |
(normal-top-level-add-subdirs-to-load-path))) |
| 25 |
|
| 26 |
(require 'install) |
| 27 |
|
| 28 |
(add-latest-path "custom") |
| 29 |
|
| 30 |
(add-path default-directory) |
| 31 |
|
| 32 |
;; (or (fboundp 'write-region-as-binary) |
| 33 |
;; (error "Please install latest APEL 7.3 or later.")) |
| 34 |
;; (or (fboundp 'insert-file-contents-as-binary) |
| 35 |
;; (error "Please install latest APEL 7.3 or later.")) |
| 36 |
|
| 37 |
|
| 38 |
;;; @ Please specify prefix of install directory. |
| 39 |
;;; |
| 40 |
|
| 41 |
;; Please specify install path prefix. |
| 42 |
;; If it is omitted, shared directory (maybe /usr/local is used). |
| 43 |
(defvar PREFIX install-prefix) |
| 44 |
;;(setq PREFIX "~/") |
| 45 |
|
| 46 |
;; Please specify prefix for ``FLIM'' [optional] |
| 47 |
(setq FLIM_PREFIX "flim") |
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
;;; @ optional settings |
| 52 |
;;; |
| 53 |
|
| 54 |
;; It is generated by automatically. Please set variable `PREFIX'. |
| 55 |
;; If you don't like default directory tree, please set it. |
| 56 |
(defvar LISPDIR (install-detect-elisp-directory PREFIX)) |
| 57 |
;; (setq install-default-elisp-directory "~/lib/emacs/lisp") |
| 58 |
|
| 59 |
(defvar VERSION_SPECIFIC_LISPDIR |
| 60 |
(install-detect-elisp-directory PREFIX nil 'version-specific)) |
| 61 |
|
| 62 |
;; (setq FLIM_DIR (expand-file-name FLIM_PREFIX VERSION_SPECIFIC_LISPDIR)) |
| 63 |
(setq FLIM_DIR (expand-file-name FLIM_PREFIX LISPDIR)) |
| 64 |
|
| 65 |
(setq FLIM_VERSION_SPECIFIC_DIR |
| 66 |
(expand-file-name FLIM_PREFIX VERSION_SPECIFIC_LISPDIR)) |
| 67 |
|
| 68 |
(defvar PACKAGEDIR |
| 69 |
(install-get-default-package-directory)) |
| 70 |
|
| 71 |
;;; FLIM-CFG ends here |