3 ;; SEMI-CFG: installation setting about WEMI.
9 (defvar default-load-path load-path)
11 (add-to-list 'load-path
12 (expand-file-name "../../site-lisp/apel" data-directory))
13 (add-to-list 'load-path
14 (expand-file-name "." data-directory))
16 (when (boundp 'LISPDIR)
17 (add-to-list 'default-load-path LISPDIR)
18 (add-to-list 'load-path LISPDIR)
19 (add-to-list 'load-path (expand-file-name "apel" LISPDIR))
24 (error (error "Please install APEL 8.7 or later.")))
26 (add-path "bitmap-mule")
29 (add-to-list 'load-path (expand-file-name "."))
31 (or (module-installed-p 'calist)
32 (error "Please install APEL 8.7 or later."))
33 (or (module-installed-p 'mime)
34 (error "Please install FLIM 1.6.0 or later."))
35 (if (module-installed-p 'tm-view)
36 (message "Please remove tm from load-path."))
39 ;;; @ Please specify optional package directory if you use them.
42 ;; It is only necessary to use `add-path' if these packages are not
43 ;; already on the standard load-path of Emacs.
45 ;; Function `get-latest-path' detect latest version of such package
46 ;; under load-path directories. If you want to use a version of a
47 ;; package instead of latest version, please specify by argument of
48 ;; function `add-path'.
50 ;; Function `add-path' finds path under load-path directories. If a
51 ;; package does not exist in load-path, please specify by absolutely
52 ;; (`~/' is available), for example
53 ;; (add-path "~/lib/elisp/mailcrypt-3.4")
55 ;; (add-path "/opt/share/xmule/site-lisp/mailcrypt-3.4")
58 ;;; @@ Please specify Mailcrypt path.
61 ;; Use latest version installed in load-path.
63 (let ((path (get-latest-path "mailcrypt" 'all-paths)))
68 ;; Or please specify path.
69 ;; (add-path "mailcrypt-3.4" 'all-paths)
72 ;;; @@ Please specify BBDB path.
75 (let ((path (get-latest-path "bbdb" 'all-paths)))
78 (add-path (expand-file-name "lisp" path)) ; run-in-place installation
81 ;; Or please specify path.
82 ;; (add-path "bbdb-1.50" 'all-paths)
86 ;;; @@ Please specify Emacs/W3 path.
89 (let ((path (get-latest-path "w3" 'all-paths)))
92 (add-path (expand-file-name "lisp" path)) ; run-in-place installation
95 ;; Or please specify path.
96 ;; (add-path "w3-4.0pre.20" 'all-paths)
102 ;; Please specify shell command path.
104 (find-if (function file-exists-p)
105 '("/bin/sh" "/usr/bin/sh")
108 ;; Please specify shell command option.
109 (setq SHELLOPTION "-c")
112 ;;; @ Please specify prefix of install directory.
115 ;; Please specify install path prefix.
116 ;; If it is omitted, shared directory (maybe /usr/local is used).
117 (defvar PREFIX install-prefix)
120 ;; Please specify install path prefix for binaries.
122 (if (or running-emacs-18 running-xemacs)
123 (expand-file-name "../../.." exec-directory)
124 (expand-file-name "../../../.." exec-directory)
127 ;; Please specify emu prefix [optional]
129 (if (string-match "XEmacs" emacs-version)
133 ;; Please specify SEMI prefix [optional]
134 (setq SEMI_PREFIX "semi")
140 ;; Please specify binary path.
141 (defvar BIN_DIR (expand-file-name "bin" EXEC_PREFIX))
143 ;; Please specify binary path. (for external method scripts)
144 (setq METHOD_DIR (expand-file-name "share/semi" PREFIX))
149 ;;; @ optional settings
152 ;; It is generated by automatically. Please set variable `PREFIX'.
153 ;; If you don't like default directory tree, please set it.
154 (defvar LISPDIR (install-detect-elisp-directory PREFIX))
155 ;; (setq install-default-elisp-directory "~/lib/emacs/lisp")
157 (setq SEMI_KERNEL_DIR (expand-file-name SEMI_PREFIX LISPDIR))
158 (setq SETUP_FILE_DIR SEMI_KERNEL_DIR)
160 (setq METHOD_SRC_DIR "methods")
162 '("tm-au" "tm-file" "tm-html" "tm-image" "tm-mpeg"
166 ;;; SEMI-CFG ends here