Sync up with SEMI 1.8.1.
[elisp/semi.git] / SEMI-CFG
index 1209df2..4bafc5c 100644 (file)
--- a/SEMI-CFG
+++ b/SEMI-CFG
@@ -1,22 +1,40 @@
 ;;; -*-Emacs-Lisp-*-
-;;;
-;;; $Id: SEMI-CFG,v 0.5 1997-03-12 07:49:41 morioka Exp $
-;;;
 
-(defvar default-load-path load-path)
-(setq load-path (append
-                (mapcar (function
-                         (lambda (path)
-                           (expand-file-name path default-directory)
-                           ))
-                        '("." "../emu" "../apel" "../bitmap-mule"
-                          "../mu" "../mel")
-                        )
-                load-path))
-
-(require 'install)
+;; SEMI-CFG: installation setting about WEMI.
+
+;;; Code:
+
 (require 'cl)
 
+(defvar default-load-path load-path)
+
+(add-to-list 'load-path
+            (expand-file-name "../../site-lisp/apel" data-directory))
+(add-to-list 'load-path
+            (expand-file-name "." data-directory))
+
+(when (boundp 'LISPDIR)
+  (add-to-list 'default-load-path LISPDIR)
+  (add-to-list 'load-path LISPDIR)
+  (add-to-list 'load-path (expand-file-name "apel" LISPDIR))
+  )
+
+(condition-case nil
+    (require 'install)
+  (error (error "Please install APEL 8.7 or later.")))
+
+(add-path "bitmap-mule")
+(add-path "flim")
+
+(add-to-list 'load-path (expand-file-name "."))
+
+(or (module-installed-p 'calist)
+    (error "Please install APEL 8.7 or later."))
+(or (module-installed-p 'mime)
+    (error "Please install FLIM 1.6.0 or later."))
+(if (module-installed-p 'tm-view)
+    (message "Please remove tm from load-path."))
+
 
 ;;; @ Please specify optional package directory if you use them.
 ;;;
 ;;;
 
 (let ((path (get-latest-path "bbdb" 'all-paths)))
-  (if path
-      (add-path path)
+  (when path
+    (add-path path)
+    (add-path (expand-file-name "lisp" path)) ; run-in-place installation
     ))
 
 ;; Or please specify path.
 ;; (add-path "bbdb-1.50" 'all-paths)
 
 
+;;;
+;;; @@ Please specify Emacs/W3 path.
+;;;
+
+(let ((path (get-latest-path "w3" 'all-paths)))
+  (when path
+    (add-path path)
+    (add-path (expand-file-name "lisp" path)) ; run-in-place installation
+    ))
+
+;; Or please specify path.
+;; (add-path "w3-4.0pre.20" 'all-paths)
+
+
 ;;; @ shell
 ;;;