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