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