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