annotate lisp/ilisp/ilisp.emacs @ 49:b46643e427ac

Added tag r19-16b90 for changeset 56c54cf7c5b6
author cvs
date Mon, 13 Aug 2007 08:56:06 +0200
parents b82b59fe008d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 ;;; -*- Mode: Emacs-Lisp -*-
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 ;;; ilisp.emacs --
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 ;;; This file is part of ILISP.
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents: 0
diff changeset
6 ;;; Version: 5.8
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 ;;; Copyright (C) 1990, 1991, 1992, 1993 Chris McConnell
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 ;;; 1993, 1994 Ivan Vasquez
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents: 0
diff changeset
10 ;;; 1994, 1995, 1996 Marco Antoniotti and Rick Busdiecker
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents: 0
diff changeset
11 ;;; 1996 Marco Antoniotti and Rick Campbell
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 ;;;
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents: 0
diff changeset
13 ;;; Send mail to 'ilisp-request@naggum.no' to be included in the
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 ;;; ILISP mailing list.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 ;;; This file shows examples of some of the things you might want to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 ;;; do to install or customize ILISP. You may not want to include all
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 ;;; of them in your .emacs. For example, the default key binding
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 ;;; prefix for ILISP is C-z and this file changes the default prefix to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 ;;; C-c. For more information on things that can be changed, see the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 ;;; file ilisp.el.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 ;;; If ilisp lives in some non-standard directory, you must tell emacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 ;;; where to get it. This may or may not be necessary.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 (setq load-path (cons (expand-file-name "~jones/emacs/ilisp/") load-path))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 ;;; If you always want partial minibuffer completion
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 (require 'completer)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 ;;; If want TMC completion then you will have to Ftp it yourself from think.com
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 ;;; It's become to flaky for me to deal with. -- Ivan
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 ;;;(load "completion")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 ;;;(initialize-completions)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 ;;; If you want to redefine typeout-window keys:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 ;;;(add-hook 'ilisp-load-hook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 ;;; '(lambda ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 ;;; (define-key global-map "\C-c1" 'ilisp-bury-output)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 ;;; (define-key global-map "\C-cv" 'ilisp-scroll-output)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 ;;; (define-key global-map "\C-cg" 'ilisp-grow-output)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 ;;; Autoload based on your LISP. You only really need the one you use.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 ;;; If called with a prefix, you will be prompted for a buffer and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 ;;; program.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 ;;; [Back to the old way now -- Ivan Mon Jun 28 23:30:51 1993]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 (autoload 'run-ilisp "ilisp" "Select a new inferior LISP." t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 (autoload 'clisp "ilisp" "Inferior generic Common LISP." t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 ;;; Franz
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 ;(autoload 'allegro "ilisp" "Inferior Allegro Common LISP." t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 ;;; Lucid
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 ;(autoload 'lucid "ilisp" "Inferior Lucid Common LISP." t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 ;;; Harlequin
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 ;(autoload lispworks "ilisp" "Inferior Harlequin Common LISP (LispWorks)." t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 ;(autoload harlequin "ilisp" "Inferior Harlequin Common LISP (LispWorks)." t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 ;(autoload pulcinella "ilisp" "Inferior Harlequin Common LISP (LispWorks)." t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 ;;; Italian "Commedia dell'Arte" twist.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 ;;; CMULISP
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 (autoload 'cmulisp "ilisp" "Inferior CMU Common LISP." t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 ;;; CLISP (Bruno Haible and XX stoll)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 ;(autoload 'clisp-hs "ilisp" "Inferior Haible/Stoll CLISP Common LISP." t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 ;;; KCL's
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 ;(autoload 'kcl "ilisp" "Inferior Kyoto Common LISP." t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 (autoload 'akcl "ilisp" "Inferior Austin Kyoto Common LISP." t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 ;(autoload 'ibcl "ilisp" "Ibuki Common LISP." t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 (autoload 'gcl "ilisp" "Inferior GNU Common LISP." t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 (autoload 'ecl "ilisp" "Inferior EcoLisp." t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents: 0
diff changeset
83 ;;; Xlisp
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents: 0
diff changeset
84 (autoload 'xlisp "ilisp" "Inferior xlisp." t)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents: 0
diff changeset
85 (autoload 'xlispstat "ilisp" "Inferior xlispstat." t)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents: 0
diff changeset
86
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 ;;; Scheme's
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 ;(autoload 'scheme "ilisp" "Inferior generic Scheme." t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 ;(autoload 'oaklisp "ilisp" "Inferior Oaklisp Scheme." t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 ;;; Define where LISP programs are found. (This may already be done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 ;;; at your site.)
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents: 0
diff changeset
94
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 ;(setq allegro-program "/usr/misc/.allegro/bin/cl")
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents: 0
diff changeset
96
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97 ;(setq lucid-program "/usr/misc/.lucid/bin/lisp")
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents: 0
diff changeset
98
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99 ;(setq clisp-hs-program "clisp")
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents: 0
diff changeset
100
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 ;(setq lispworks-program "/somewhere/in/the/directory/tree/lispworks")
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents: 0
diff changeset
102
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 (setq cmulisp-program "/usr/robotics/shared/lang/cmu-cl/17e/bin/lisp")
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents: 0
diff changeset
104
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105 (setq akcl-program "kcl")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106 ;(setq gcl-program "gcl")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 ;(setq ecl-program "ecl")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents: 0
diff changeset
109 ;(setq xlisp-program "xlisp")
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents: 0
diff changeset
110 ;(setq xlisp-program "xlispstat")
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents: 0
diff changeset
111
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112 ;;; If you run cmu-cl then set this to where your source files are.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113 (setq cmulisp-local-source-directory "/usr/robotics/shared/cmu-cl/17e/")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116 ;;; This makes reading a lisp file load in ilisp.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117 (set-default 'auto-mode-alist
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118 (append '(("\\.lisp$" . lisp-mode)) auto-mode-alist))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119 (setq lisp-mode-hook '(lambda () (require 'ilisp)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121 ;;; Sample load hook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122 (add-hook 'ilisp-load-hook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123 (function
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124 (lambda ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125 ;; Change default key prefix to C-c
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126 (setq ilisp-prefix "\C-c")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128 ;; Make sure that you don't keep popping up the 'inferior
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129 ;; lisp' buffer window when this is already visible in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 ;; another frame. Actually this variable has more impact
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131 ;; than that. Watch out.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132 ;(setq pop-up-frames t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134 (message "Running ilisp-load-hook")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 ;; Define LispMachine-like key bindings, too.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136 ;; (ilisp-lispm-bindings) Sample initialization hook.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138 ;; Set the inferior LISP directory to the directory of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139 ;; the buffer that spawned it on the first prompt.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140 (add-hook 'ilisp-init-hook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141 (function
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142 (lambda ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143 (default-directory-lisp ilisp-last-buffer))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144 )))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146 (add-hook 'ilisp-site-hook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147 (function
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
148 (lambda ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149 (setq ilisp-init-binary-extension "sparcf")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
150 (setq ilisp-init-binary-command "(progn \"sparcf\")")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151 ;; (setq ilisp-binary-extension "sparcf")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
152 )))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
153
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
154
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
155 ;;; end of file -- ilisp.emacs --