Add site-lisp/apel/ even if LISPDIR is specified.
[elisp/semi.git] / SEMI-CFG
1 ;;; -*-Emacs-Lisp-*-
2 ;;;
3 ;;; $Id: SEMI-CFG,v 0.7 1997-05-13 14:32:15 morioka Exp $
4 ;;;
5
6 (defvar default-load-path load-path)
7 ;; (setq load-path (append
8 ;;                  (mapcar (function
9 ;;                           (lambda (path)
10 ;;                             (expand-file-name path default-directory)
11 ;;                             ))
12 ;;                          '("." "../emu" "../apel" "../bitmap-mule"
13 ;;                            "../mu" "../mel")
14 ;;                          )
15 ;;                  load-path))
16
17 (add-to-list 'load-path
18              (expand-file-name "../../site-lisp/apel" data-directory))
19
20 (when (boundp 'LISPDIR)
21   (add-to-list 'default-load-path LISPDIR)
22   (add-to-list 'load-path LISPDIR)
23   (add-to-list 'load-path (expand-file-name "apel" LISPDIR))
24   )
25
26 (require 'install)
27 (require 'cl)
28
29 (add-path "bitmap-mule")
30 (add-path "mel")
31
32 (add-to-list 'load-path (expand-file-name "."))
33
34
35 ;;; @ Please specify optional package directory if you use them.
36 ;;;
37
38 ;; It is only necessary to use `add-path' if these packages are not
39 ;; already on the standard load-path of Emacs.
40
41 ;; Function `get-latest-path' detect latest version of such package
42 ;; under load-path directories. If you want to use a version of a
43 ;; package instead of latest version, please specify by argument of
44 ;; function `add-path'.
45
46 ;; Function `add-path' finds path under load-path directories. If a
47 ;; package does not exist in load-path, please specify by absolutely
48 ;; (`~/' is available), for example
49 ;;      (add-path "~/lib/elisp/mailcrypt-3.4")
50 ;; or
51 ;;      (add-path "/opt/share/xmule/site-lisp/mailcrypt-3.4")
52
53
54 ;;; @@ Please specify Mailcrypt path.
55 ;;;
56
57 ;; Use latest version installed in load-path.
58
59 (let ((path (get-latest-path "mailcrypt" 'all-paths)))
60   (if path
61       (add-path path)
62     ))
63
64 ;; Or please specify path.
65 ;; (add-path "mailcrypt-3.4" 'all-paths)
66
67
68 ;;; @@ Please specify BBDB path.
69 ;;;
70
71 (let ((path (get-latest-path "bbdb" 'all-paths)))
72   (if path
73       (add-path path)
74     ))
75
76 ;; Or please specify path.
77 ;; (add-path "bbdb-1.50" 'all-paths)
78
79
80 ;;; @ shell
81 ;;;
82
83 ;; Please specify shell command path.
84 (setq SHELL
85       (find-if (function file-exists-p)
86                '("/bin/sh" "/usr/bin/sh")
87                ))
88
89 ;; Please specify shell command option.
90 (setq SHELLOPTION "-c")
91
92
93 ;;; @ Please specify prefix of install directory.
94 ;;;
95
96 ;; Please specify install path prefix.
97 ;; If it is omitted, shared directory (maybe /usr/local is used).
98 (defvar PREFIX install-prefix)
99 ;;(setq PREFIX "~/")
100
101 ;; Please specify install path prefix for binaries.
102 (defvar EXEC_PREFIX
103   (if (or running-emacs-18 running-xemacs)
104       (expand-file-name "../../.." exec-directory)
105     (expand-file-name "../../../.." exec-directory)
106     ))
107
108 ;; Please specify emu prefix [optional]
109 (setq EMU_PREFIX
110       (if (string-match "XEmacs" emacs-version)
111           "emu"
112         ""))
113
114 ;; Please specify SEMI prefix [optional]
115 (setq SEMI_PREFIX "semi")
116
117
118 ;;; @ executables
119 ;;;
120
121 ;; Please specify binary path.
122 (defvar BIN_DIR (expand-file-name "bin" EXEC_PREFIX))
123
124 ;; Please specify binary path. (for external method scripts)
125 (setq METHOD_DIR (expand-file-name "share/semi" PREFIX))
126
127
128 \f
129
130 ;;; @ optional settings
131 ;;;
132
133 ;; It is generated by automatically. Please set variable `PREFIX'.
134 ;; If you don't like default directory tree, please set it.
135 (defvar LISPDIR (install-detect-elisp-directory PREFIX))
136 ;; (setq install-default-elisp-directory "~/lib/emacs/lisp")
137
138 (setq SEMI_KERNEL_DIR   (expand-file-name SEMI_PREFIX   LISPDIR))
139 (setq SETUP_FILE_DIR    SEMI_KERNEL_DIR)
140
141 (setq METHOD_SRC_DIR "methods")
142 (setq METHODS
143       '("tm-au" "tm-file" "tm-html" "tm-image" "tm-mpeg"
144         "tm-plain" "tm-ps"
145         "tmdecode"))
146
147 ;;; SEMI-CFG ends here