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