X-Git-Url: http://git.chise.org/gitweb/?p=elisp%2Fnabe.git;a=blobdiff_plain;f=NABE-CFG;h=3f24b48f203444b345e2b69a05338db732b7c0b6;hp=7db4b968ba05e667fc26600845aff3fbd57331b6;hb=HEAD;hpb=0ff03a2aa3f12b5ada6a4aee187687973c5bed2a diff --git a/NABE-CFG b/NABE-CFG index 7db4b96..3f24b48 100644 --- a/NABE-CFG +++ b/NABE-CFG @@ -1,19 +1,25 @@ ;;; -*-Emacs-Lisp-*- -;;; -;;; $Id: NABE-CFG,v 0.4 1997/02/28 04:14:50 tmorioka Exp morioka $ -;;; -(setq load-path (append - (mapcar (function - (lambda (path) - (expand-file-name path (getenv "PWD")) - )) - '("." "../apel" "../emu") - ) - load-path)) +;; NABE-CFG: installation setting about NABE. + +;;; Code: + +(defvar default-load-path load-path) + +(cond ((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)) + ) + (t + (add-to-list 'load-path + (expand-file-name "../../site-lisp/apel" data-directory)) + )) (require 'install) +(add-to-list 'load-path default-directory) + ;;; @ Please specify prefix of install directory. ;;; @@ -38,4 +44,18 @@ (setq NABE_DIR (expand-file-name NABE_PREFIX LISPDIR)) +(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))) + ;;; NABE-CFG ends here