3 ;; SEMI-CFG: installation setting about WEMI.
7 (defvar default-load-path load-path)
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))
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))
21 (defvar VERSION_SPECIFIC_LISPDIR nil)
23 (if VERSION_SPECIFIC_LISPDIR
24 (add-to-list 'load-path VERSION_SPECIFIC_LISPDIR))
28 (error (error "Please install APEL 8.7 or later.")))
30 (add-path "bitmap-mule")
33 (add-to-list 'load-path (expand-file-name "."))
35 (or (module-installed-p 'calist)
36 (error "Please install APEL 8.7 or later."))
37 (or (module-installed-p 'mime)
38 (error "Please install FLIM 1.6.0 or later."))
39 (if (module-installed-p 'tm-view)
40 (message "Please remove tm from load-path."))
43 ;;; @ Please specify optional package directory if you use them.
46 ;; It is only necessary to use `add-path' if these packages are not
47 ;; already on the standard load-path of Emacs.
49 ;; Function `get-latest-path' detect latest version of such package
50 ;; under load-path directories. If you want to use a version of a
51 ;; package instead of latest version, please specify by argument of
52 ;; function `add-path'.
54 ;; Function `add-path' finds path under load-path directories. If a
55 ;; package does not exist in load-path, please specify by absolutely
56 ;; (`~/' is available), for example
57 ;; (add-path "~/lib/elisp/mailcrypt-3.4")
59 ;; (add-path "/opt/share/xmule/site-lisp/mailcrypt-3.4")
62 ;;; @@ Please specify Mailcrypt path.
65 ;; Use latest version installed in load-path.
67 (let ((path (get-latest-path "mailcrypt" 'all-paths)))
72 ;; Or please specify path.
73 ;; (add-path "mailcrypt-3.4" 'all-paths)
76 ;;; @@ Please specify BBDB path.
79 (let ((path (get-latest-path "bbdb" 'all-paths)))
82 (add-path (expand-file-name "lisp" path)) ; run-in-place installation
85 ;; Or please specify path.
86 ;; (add-path "bbdb-1.50" 'all-paths)
90 ;;; @@ Please specify Emacs/W3 path.
93 (let ((path (get-latest-path "w3" 'all-paths)))
96 (add-path (expand-file-name "lisp" path)) ; run-in-place installation
99 ;; Or please specify path.
100 ;; (add-path "w3-4.0pre.20" 'all-paths)
104 ;;; @@ Please specify CUSTOM path.
107 (add-latest-path "custom")
110 ;;; @ Please specify prefix of install directory.
113 ;; Please specify install path prefix.
114 ;; If it is omitted, shared directory (maybe /usr/local is used).
115 (defvar PREFIX install-prefix)
118 ;; Please specify install path prefix for binaries.
120 (if (or running-emacs-18 running-xemacs)
121 (expand-file-name "../../.." exec-directory)
122 (expand-file-name "../../../.." exec-directory)
125 ;; Please specify emu prefix [optional]
127 (if (string-match "XEmacs" emacs-version)
131 ;; Please specify SEMI prefix [optional]
132 (setq SEMI_PREFIX "semi")
138 ;; Please specify binary path.
139 (defvar BIN_DIR (expand-file-name "bin" EXEC_PREFIX))
141 ;; Please specify binary path. (for external method scripts)
142 (setq METHOD_DIR (expand-file-name "share/semi" PREFIX))
147 ;;; @ optional settings
150 ;; It is generated by automatically. Please set variable `PREFIX'.
151 ;; If you don't like default directory tree, please set it.
152 (defvar LISPDIR (install-detect-elisp-directory PREFIX))
153 ;; (setq install-default-elisp-directory "~/lib/emacs/lisp")
155 (setq SEMI_KERNEL_DIR (expand-file-name SEMI_PREFIX LISPDIR))
156 (setq SETUP_FILE_DIR SEMI_KERNEL_DIR)
158 (setq METHOD_SRC_DIR "methods")
160 '("tm-au" "tm-file" "tm-html" "tm-image" "tm-mpeg"
165 (if (boundp 'early-packages)
166 (let ((dirs (append (if early-package-load-path
168 (if late-package-load-path
170 (if last-package-load-path
173 (while (not (file-exists-p
174 (setq dir (car dirs))))
175 (setq dirs (cdr dirs)))
178 ;;; SEMI-CFG ends here