annotate lisp/ilisp/ilisp.emacs @ 0:376386a54a3c r19-14

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