70 lines
1.9 KiB
Plaintext
70 lines
1.9 KiB
Plaintext
;;; -*-Emacs-Lisp-*-
|
||
|
||
;; FLIM-CFG: installation setting about FLIM.
|
||
|
||
;;; Code:
|
||
|
||
(defvar default-load-path load-path)
|
||
|
||
(add-to-list 'load-path
|
||
(expand-file-name "lisp/apel" user-emacs-directory))
|
||
(add-to-list 'load-path
|
||
(expand-file-name "lisp/emu" user-emacs-directory))
|
||
|
||
(if (boundp 'LISPDIR)
|
||
(progn
|
||
(add-to-list 'default-load-path LISPDIR)
|
||
(add-to-list 'load-path LISPDIR)
|
||
(add-to-list 'load-path (expand-file-name "apel" LISPDIR))))
|
||
|
||
(if (boundp 'VERSION_SPECIFIC_LISPDIR)
|
||
(add-to-list 'load-path VERSION_SPECIFIC_LISPDIR))
|
||
|
||
(require 'install)
|
||
|
||
(add-latest-path "custom")
|
||
|
||
(add-path default-directory)
|
||
|
||
;; (or (fboundp 'write-region-as-binary)
|
||
;; (error "Please install latest APEL 7.3 or later."))
|
||
;; (or (fboundp 'insert-file-contents-as-binary)
|
||
;; (error "Please install latest APEL 7.3 or later."))
|
||
|
||
|
||
;;; @ Please specify prefix of install directory.
|
||
;;;
|
||
|
||
;; Please specify install path prefix.
|
||
;; If it is omitted, shared directory (maybe /usr/local is used).
|
||
(defvar PREFIX install-prefix)
|
||
(setq PREFIX "~/")
|
||
|
||
;; Please specify prefix for ``FLIM'' [optional]
|
||
(setq FLIM_PREFIX "flim")
|
||
|
||
|
||
|
||
;;; @ optional settings
|
||
;;;
|
||
|
||
;; It is generated by automatically. Please set variable `PREFIX'.
|
||
;; If you don't like default directory tree, please set it.
|
||
(setq install-default-elisp-directory "~/.emacs.d/lisp")
|
||
(defvar LISPDIR (install-detect-elisp-directory PREFIX))
|
||
;; (setq install-default-elisp-directory "~/lib/emacs/lisp")
|
||
|
||
(defvar VERSION_SPECIFIC_LISPDIR
|
||
(install-detect-elisp-directory PREFIX nil 'version-specific))
|
||
|
||
;; (setq FLIM_DIR (expand-file-name FLIM_PREFIX VERSION_SPECIFIC_LISPDIR))
|
||
(setq FLIM_DIR (expand-file-name FLIM_PREFIX "~/.emacs.d/lisp/"))
|
||
|
||
(setq FLIM_VERSION_SPECIFIC_DIR
|
||
(expand-file-name FLIM_PREFIX VERSION_SPECIFIC_LISPDIR))
|
||
|
||
(defvar PACKAGEDIR
|
||
(install-get-default-package-directory))
|
||
|
||
;;; FLIM-CFG ends here
|