home *** CD-ROM | disk | FTP | other *** search
- ;;;
- ;;; This file shows examples of some of the things you might want to
- ;;; do to install or customize ILISP. You may not want to include all
- ;;; of them in your .emacs. For example, the default key binding
- ;;; prefix for ILISP is C-z and this file changes the default prefix to
- ;;; C-c. For more information on things that can be changed, see the
- ;;; file ilisp.el.
- ;;;
-
- ;;; If ilisp lives in some non-standard directory, you must tell emacs
- ;;; where to get it. This may or may not be necessary.
- (setq load-path (cons (expand-file-name "~jones/emacs/ilisp/") load-path))
-
- ;;; If you always want partial minibuffer completion
- (require 'completer)
-
- ;;; If want always want TMC completion
- (load "completion")
- (initialize-completions)
-
- ;;; If you want to redefine popper keys
- (setq popper-load-hook
- '(lambda ()
- (define-key global-map "\C-c1" 'popper-bury-output)
- (define-key global-map "\C-cv" 'popper-scroll-output)
- (define-key global-map "\C-cg" 'popper-grow-output)
- (define-key global-map "\C-cb" 'popper-switch)))
-
- ;;; If you always want popper windows
- (if (boundp 'epoch::version)
- (require 'epoch-pop)
- (require 'popper))
-
- ;;; Autoload based on your LISP. You only really need the one you use.
- ;;; If called with a prefix, you will be prompted for a buffer and program.
- (autoload 'run-ilisp "ilisp" "Select a new inferior LISP." t)
- (autoload 'clisp "ilisp" "Inferior generic Common LISP." t)
- (autoload 'allegro "ilisp" "Inferior Allegro Common LISP." t)
- (autoload 'lucid "ilisp" "Inferior Lucid Common LISP." t)
- (autoload 'cmulisp "ilisp" "Inferior CMU Common LISP." t)
- (autoload 'kcl "ilisp" "Inferior Kyoto Common LISP." t)
- (autoload 'akcl "ilisp" "Inferior Austin Kyoto Common LISP." t)
- (autoload 'ibcl "ilisp" "Ibuki Common LISP." t)
- (autoload 'scheme "ilisp" "Inferior generic Scheme." t)
- (autoload 'oaklisp "ilisp" "Inferior Oaklisp Scheme." t)
-
- ;;; Define where LISP programs are found. (This may already be done
- ;;; at your site.)
- (setq allegro-program "/usr/misc/.allegro/bin/cl")
- (setq lucid-program "/usr/misc/.lucid/bin/lisp")
- (setq cmulisp-program "/usr/misc/.cmucl/bin/lisp")
-
- ;;; This makes reading a lisp file load in ilisp.
- (set-default 'auto-mode-alist
- (append '(("\\.lisp$" . lisp-mode)) auto-mode-alist))
- (setq lisp-mode-hook '(lambda () (require 'ilisp)))
-
- ;;; Sample load hook
- (setq ilisp-load-hook
- '(lambda ()
- ;; Change default key prefix to C-c
- (setq ilisp-prefix "\C-c")
- ;; Sample initialization hook. Set the inferior LISP directory to
- ;; the directory of the buffer that spawned it on the first prompt.
- (add-hook ilisp-hook
- (function (lambda ()
- (default-directory-lisp ilisp-last-buffer))))))
-
- ;;; Setup to always show output in the Inferior LISP buffer.
- ;(setq lisp-no-popper t
- ; comint-always-scroll t)
-