blob: 2c7526b9606e6d1d14bd0edc25a2b574685813da (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
|
;;; -*- Mode: Emacs-Lisp -*-
;;;
;;; Copyright (c) 2002 Kevin Rosenberg GNU License
;;; Mofifications for Gentoo, Matthew Kennedy <mkennedy@gentoo.org>
(defvar ilisp-*directory* "/usr/lib/ilisp/")
(require 'completer)
(setq ilisp-*use-fsf-compliant-keybindings* t)
(when (file-exists-p "/etc/ilisp/ilisp-keybindings.el")
(load "/etc/ilisp/ilisp-keybindings.el"))
(setq ilisp-*use-frame-for-output* nil)
(setq ilisp-*use-frame-for-arglist-output-p* nil)
(setq ilisp-motd nil)
(autoload 'run-ilisp "ilisp" "Select a new inferior LISP." t)
(autoload 'clisp-hs "ilisp" "Inferior CLISP Common LISP." t)
(autoload 'allegro "ilisp" "Inferior Allegro Common Lisp." t)
(autoload 'lispworks "ilisp" "Inferior Lispworks Common Lisp." t)
(autoload 'openmcl "ilisp" "Inferior OpenMCL Common Lisp." t)
(autoload 'scheme "ilisp" "Inferior generic Scheme." t)
(autoload 'guile "ilisp" "Inferior Guile Scheme." t)
(defun alisp ()
(interactive)
(setq allegro-program "/usr/bin/alisp")
(allegro))
(defun alisp8 ()
(interactive)
(setq allegro-program "/usr/bin/alisp8")
(allegro))
(defun mlisp ()
(interactive)
(setq allegro-program "/usr/bin/mlisp")
(allegro))
(defun mlisp8 ()
(interactive)
(setq allegro-program "/usr/bin/mlisp8")
(allegro))
;; (defun cmucl-normal ()
;; "Inferior CMU Common LISP -- normal core."
;; (interactive)
;; (setq cmulisp-program "/usr/bin/lisp -core /usr/lib/cmucl/lisp-normal.core")
;; (cmulisp))
;; (defun cmucl-small ()
;; "Inferior CMU Common LISP -- small core."
;; (interactive)
;; (setq cmulisp-program "/usr/bin/lisp -core /usr/lib/cmucl/lisp-small.core")
;; (cmulisp))
;; (defun cmucl-safe ()
;; "Inferior CMU Common LISP -- safe core."
;; (interactive)
;; (setq cmulisp-program "/usr/bin/lisp -core /usr/lib/cmucl/lisp-safe.core")
;; (cmulisp))
(defun sbcl-mt ()
"SBCL multithreading."
(interactive)
(setq sbcl-program "/usr/bin/sbcl-mt --noinform")
(sbcl))
(autoload 'sbcl "ilisp" "Inferior Steel Bank Common LISP." t)
(autoload 'cmulisp "ilisp" "Inferior CMU Common LISP." t)
(setq common-lisp-hyperspec-root "/usr/share/doc/hyperspec/")
(setq cltl2-root-url "file:///usr/share/doc/cltl/")
(setq ilisp-site-hook
'(lambda ()
;; delete any keybindings that start with this sequence, such
;; as oo-browser's bindings
(global-unset-key [(control c) (control v)])
(setq clisp-hs-progam "clisp -a -I")
(setq allegro-program "/usr/bin/acl")
(setq lispworks-program "/usr/bin/lw-console -multiprocessing")
(setq openmcl-program "/usr/bin/openmcl")
(setq cmulisp-program "/usr/bin/lisp")
(setq guile-program "/usr/bin/guile1.4")
(setq cmulisp-local-source-directory "/usr/src/cmucl/")
))
(add-hook 'ilisp-mode-hook
'(lambda ()))
;; Loading lisp files starts ilisp
(set-default 'auto-mode-alist
(append '(("\\.lisp$" . lisp-mode)
("\\.lsp$" . lisp-mode)
("\\.cl$" . lisp-mode))
auto-mode-alist))
(add-hook 'lisp-mode-hook
(function (lambda () (require 'ilisp))))
;;; Load hooks
(add-hook 'scheme-mode-hook
(function (lambda () (require 'ilisp))))
(add-hook 'ilisp-load-hook
'(lambda ()
(when ilisp-*use-fsf-compliant-keybindings*
(setq ilisp-*prefix* "\C-c"))
(setq lisp-no-popper t)
;; Make sure that you don't keep popping up the 'inferior
;; Lisp' buffer window when this is already visible in
;; another frame. Actually this variable has more impact
;; than that. Watch out.
; (setq pop-up-frames t)
;;(message "Running ilisp-load-hook")
;; Define LispMachine-like key bindings, too.
; (ilisp-lispm-bindings) Sample initialization hook.
;; Set the inferior Lisp directory to the directory of
;; the buffer that spawned it on the first prompt.
(add-hook 'ilisp-init-hook
'(lambda ()
(default-directory-lisp ilisp-last-buffer)))
))
|