3 ;; FLIM-CFG: installation setting about FLIM.
7 (defvar default-load-path load-path)
9 (if (fboundp 'add-to-list)
11 ;; Emacs 19.29 emulating function.
12 (defun add-to-list (list-var element)
13 (set list-var (cons element (symbol-value list-var))))
16 (if (boundp 'data-directory)
18 ;; Emacs 19 emulating variable.
19 (defvar data-directory exec-directory)
22 (add-to-list 'load-path
23 (expand-file-name "../../site-lisp/apel" data-directory))
27 (add-to-list 'default-load-path LISPDIR)
28 (add-to-list 'load-path LISPDIR)
29 (add-to-list 'load-path (expand-file-name "apel" LISPDIR))
32 (if (boundp 'VERSION_SPECIFIC_LISPDIR)
33 (add-to-list 'load-path VERSION_SPECIFIC_LISPDIR))
37 ;; It is needed because the function `add-path' uses it.
42 (add-latest-path "custom")
44 (add-path default-directory)
46 ;; (or (fboundp 'write-region-as-binary)
47 ;; (error "Please install latest APEL 7.3 or later."))
48 ;; (or (fboundp 'insert-file-contents-as-binary)
49 ;; (error "Please install latest APEL 7.3 or later."))
52 ;;; @ Please specify prefix of install directory.
55 ;; Please specify install path prefix.
56 ;; If it is omitted, shared directory (maybe /usr/local is used).
57 (defvar PREFIX install-prefix)
60 ;; Please specify prefix for ``FLIM'' [optional]
61 (setq FLIM_PREFIX "flim")
65 ;;; @ optional settings
68 ;; It is generated by automatically. Please set variable `PREFIX'.
69 ;; If you don't like default directory tree, please set it.
70 (defvar LISPDIR (install-detect-elisp-directory PREFIX))
71 ;; (setq install-default-elisp-directory "~/lib/emacs/lisp")
73 (defvar VERSION_SPECIFIC_LISPDIR
74 (install-detect-elisp-directory PREFIX nil 'version-specific))
76 ;; (setq FLIM_DIR (expand-file-name FLIM_PREFIX VERSION_SPECIFIC_LISPDIR))
77 (setq FLIM_DIR (expand-file-name FLIM_PREFIX LISPDIR))
80 (if (boundp 'early-packages)
81 (let ((dirs (append (if early-package-load-path
83 (if late-package-load-path
85 (if last-package-load-path
88 (while (not (file-exists-p
89 (setq dir (car dirs))))
90 (setq dirs (cdr dirs)))
93 ;;; FLIM-CFG ends here