3 ;;; $Id: SEMI-CFG,v 0.4 1997-03-03 17:52:59 morioka Exp $
6 (defvar default-load-path load-path)
7 (setq load-path (append
10 (expand-file-name path default-directory)
12 '("." "../emu" "../apel" "../bitmap-mule"
14 "../emh" "../gnus-mime" "../rmail-mime")
22 ;;; @ Please specify optional package directory if you use them.
25 ;; It is only necessary to use `add-path' if these packages are not
26 ;; already on the standard load-path of Emacs.
28 ;; Function `get-latest-path' detect latest version of such package
29 ;; under load-path directories. If you want to use a version of a
30 ;; package instead of latest version, please specify by argument of
31 ;; function `add-path'.
33 ;; Function `add-path' finds path under load-path directories. If a
34 ;; package does not exist in load-path, please specify by absolutely
35 ;; (`~/' is available), for example
36 ;; (add-path "~/lib/elisp/mailcrypt-3.4")
38 ;; (add-path "/opt/share/xmule/site-lisp/mailcrypt-3.4")
41 ;;; @@ Please specify Mailcrypt path.
44 ;; Use latest version installed in load-path.
46 (let ((path (get-latest-path "mailcrypt" 'all-paths)))
51 ;; Or please specify path.
52 ;; (add-path "mailcrypt-3.4" 'all-paths)
55 ;;; @@ Please specify BBDB path.
58 (let ((path (get-latest-path "bbdb" 'all-paths)))
63 ;; Or please specify path.
64 ;; (add-path "bbdb-1.50" 'all-paths)
70 ;; Please specify shell command path.
72 (find-if (function file-exists-p)
73 '("/bin/sh" "/usr/bin/sh")
76 ;; Please specify shell command option.
77 (setq SHELLOPTION "-c")
80 ;;; @ Please specify prefix of install directory.
83 ;; Please specify install path prefix.
84 ;; If it is omitted, shared directory (maybe /usr/local is used).
85 (defvar PREFIX install-prefix)
88 ;; Please specify install path prefix for binaries.
90 (if (or running-emacs-18 running-xemacs)
91 (expand-file-name "../../.." exec-directory)
92 (expand-file-name "../../../.." exec-directory)
95 ;; Please specify emu prefix [optional]
97 (if (string-match "XEmacs" emacs-version)
101 ;; Please specify APEL prefix [optional]
102 (setq APEL_PREFIX "apel")
104 ;; Please specify prefix for ``bitmap-mule'' [optional]
105 (setq BITMAP_PREFIX "bitmap")
107 ;; Please specify MU prefix [optional]
108 (setq MU_PREFIX "mu")
110 ;; Please specify MEL prefix [optional]
111 (setq MEL_PREFIX "mel")
113 ;; Please specify SEMI prefix [optional]
114 (setq SEMI_PREFIX "semi")
120 ;; Please specify binary path.
121 (defvar BIN_DIR (expand-file-name "bin" EXEC_PREFIX))
123 ;; Please specify binary path. (for external method scripts)
124 (setq METHOD_DIR (expand-file-name "share/semi" PREFIX))
129 ;;; @ optional settings
132 ;; It is generated by automatically. Please set variable `PREFIX'.
133 ;; If you don't like default directory tree, please set it.
134 (defvar LISPDIR (install-detect-elisp-directory PREFIX))
135 ;; (setq install-default-elisp-directory "~/lib/emacs/lisp")
140 (install-detect-elisp-directory PREFIX nil 'version-specific)))
142 (setq APEL_DIR (expand-file-name APEL_PREFIX LISPDIR))
143 (setq BITMAP_DIR (expand-file-name BITMAP_PREFIX LISPDIR))
144 (setq MU_DIR (expand-file-name MU_PREFIX LISPDIR))
145 (setq MEL_DIR (expand-file-name MEL_PREFIX LISPDIR))
146 (setq SEMI_KERNEL_DIR (expand-file-name SEMI_PREFIX LISPDIR))
147 (setq SETUP_FILE_DIR SEMI_KERNEL_DIR)
148 (setq EMH_DIR SEMI_KERNEL_DIR)
149 (setq Gnus_MIME_DIR SEMI_KERNEL_DIR)
150 (setq RMAIL_MIME_DIR SEMI_KERNEL_DIR)
151 (setq SEMI_VM_DIR SEMI_KERNEL_DIR)
153 (cond ((member LISPDIR default-load-path)
154 (setq APEL_RELATIVE_DIR APEL_PREFIX)
155 (setq BITMAP_RELATIVE_DIR BITMAP_PREFIX)
156 (setq MU_RELATIVE_DIR MU_PREFIX)
157 (setq MEL_RELATIVE_DIR MEL_PREFIX)
158 (setq SEMI_KERNEL_RELATIVE_DIR SEMI_PREFIX)
160 ((string-match (concat "^" (regexp-quote (expand-file-name "~/")))
162 (setq APEL_RELATIVE_DIR
163 (concat "~/" (file-relative-name APEL_DIR "~/"))
165 (setq BITMAP_RELATIVE_DIR
166 (concat "~/" (file-relative-name BITMAP_DIR "~/"))
168 (setq MU_RELATIVE_DIR
169 (concat "~/" (file-relative-name MU_DIR "~/"))
171 (setq MEL_RELATIVE_DIR
172 (concat "~/" (file-relative-name MEL_DIR "~/"))
174 (setq SEMI_KERNEL_RELATIVE_DIR
175 (concat "~/" (file-relative-name SEMI_KERNEL_DIR "~/"))
179 (setq APEL_RELATIVE_DIR APEL_DIR)
180 (setq BITMAP_RELATIVE_DIR BITMAP_DIR)
181 (setq MU_RELATIVE_DIR MU_DIR)
182 (setq MEL_RELATIVE_DIR MEL_DIR)
183 (setq SEMI_KERNEL_RELATIVE_DIR SEMI_KERNEL_DIR)
185 (setq EMH_RELATIVE_DIR SEMI_KERNEL_RELATIVE_DIR)
186 (setq Gnus_MIME_RELATIVE_DIR SEMI_KERNEL_RELATIVE_DIR)
188 (setq METHOD_SRC_DIR "methods")
190 '("tm-au" "tm-file" "tm-html" "tm-image" "tm-mpeg"
194 ;;; SEMI-CFG ends here