X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=SEMI-CFG;h=c05df103208723fe2b5f8b6eecd873d36e315476;hb=974eb5256a98baea1fcc96a4289d7566e4e10870;hp=ddf47c7cad1db4518ab3156153e2d732f4fa255f;hpb=f233da5ac7856edbeb5cc2cb24e269aadec5402e;p=elisp%2Fsemi.git diff --git a/SEMI-CFG b/SEMI-CFG index ddf47c7..c05df10 100644 --- a/SEMI-CFG +++ b/SEMI-CFG @@ -4,8 +4,6 @@ ;;; Code: -(require 'cl) - (defvar default-load-path load-path) (add-to-list 'load-path @@ -13,11 +11,17 @@ (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)) - ) +(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)) + )) + +(defvar VERSION_SPECIFIC_LISPDIR nil) + +(if VERSION_SPECIFIC_LISPDIR + (add-to-list 'load-path VERSION_SPECIFIC_LISPDIR)) (condition-case nil (require 'install) @@ -30,10 +34,10 @@ (or (module-installed-p 'calist) (error "Please install APEL 8.7 or later.")) -(or (module-installed-p 'mel) - (error "Please install FLIM 1.1.0 or later.")) +(or (module-installed-p 'mime) + (error "Please install FLIM 1.6.0 or later.")) (if (module-installed-p 'tm-view) - (error "Please remove tm from load-path.")) + (message "Please remove tm from load-path.")) ;;; @ Please specify optional package directory if you use them. @@ -73,25 +77,34 @@ ;;; (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) -;;; @ shell ;;; +;;; @@ 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 + )) -;; Please specify shell command path. -(setq SHELL - (find-if (function file-exists-p) - '("/bin/sh" "/usr/bin/sh") - )) +;; Or please specify path. +;; (add-path "w3-4.0pre.20" 'all-paths) -;; Please specify shell command option. -(setq SHELLOPTION "-c") + +;;; +;;; @@ Please specify CUSTOM path. +;;; + +(add-latest-path "custom") ;;; @ Please specify prefix of install directory. @@ -148,4 +161,18 @@ "tm-plain" "tm-ps" "tmdecode")) +(defvar PACKAGEDIR + (if (boundp 'early-packages) + (let ((dirs (append (if early-package-load-path + early-packages) + (if late-package-load-path + late-packages) + (if last-package-load-path + last-packages))) + dir) + (while (not (file-exists-p + (setq dir (car dirs)))) + (setq dirs (cdr dirs))) + dir))) + ;;; SEMI-CFG ends here