(defun cliki:start-slime ()
(unless (slime-connected-p)
(save-excursion (slime))))
(add-hook 'slime-mode-hook 'cliki:start-slime)
C-u M-x slime you are given the option of starting additional Lisp processes and connecting to them, resulting in multiple REPL buffers. The lisp-mode buffers will use the most recently opened connection, unless you cycle to another with M-x slime-next-connection
C-u M-x slime) as "clisp -K full" to include the full linking set. The default base linking set does not include the REGEXP module, upon which SLIME depends. Failure to use a linking set including the REGEXP module causes SLIME to complain about the missing REGEXP package.inferior-lisp-program in your .emacs file to the correct executable and args:
(setq inferior-lisp-program "clisp -K full")
FAIRLY-STABLE CVS tag. The CVS incantation is:
cvs update -r FAIRLY-STABLE .Generally speaking the FAIRLY-STABLE tag is set immediately before some dangerous changes are being made. Thus during periods of general stability it may be quite out-of-date and less featureful than the current version.
...A file with name /c/cygwin/usr/share/emacs/site-lisp/slime/swank-loader does not exist...One easy fix is to mount the Windows volume under the Cygwin root:
mkdir /c touch /c/NOT_MOUNTED mount C:\\ /c
(add-hook 'lisp-mode-hook
(defun my-lisp-mode-hook ()
(set (make-local-variable 'lisp-indent-function)
'common-lisp-indent-function)))
Alternatively, try adding the following in your ~/.emacs:
(slime-setup)
`M-x customize-group slime-debugger' to make the debugger pretty.(set-language-environment "UTF-8") (setq slime-net-coding-system 'utf-8-unix)
(This is taken from a blog entry, where he goes on to say: A Unicode aware Lisp implementation such as Clisp or SBCL and Emacs version 21.4 or greater. I won't go into setting those up here, but in Gentoo you'll need to be sure SBCL is emerged with the "unicode" USE flag, and Emacs with the "leim" use flag and some tweaking to the ebuild.)
inferior-lisp-modeas the attachtty command line results in numerous errors which appear to be from SLIME trying to load its files (locally in /Users/me/whatever) on the Linux box (obviously they aren't there).
Actually, you don't even need detachtty. But still I prefer to use it, so that I can attach back to it if something breaks even the swank server (e.g. entering the debugger). You have to add something like the following to your application:
(swank:create-server)Then you can use SLIME's slime-connect command.
M-x slime bug in Lisp in a Box for Windows running Allegro CL 6.2 Trial: Warning: Lisp newbie workaround! But it works. Advice welcome. Add this to the end of the 99init.el file located directly under the LispBox directory.
Alternatively, setting inferior-lisp-program, such as (defvar inferior-lisp-program "lisp") with the correct executable and args instead of just "lisp", in this file would probably also fix the problem.
;; The following are a few workarounds for the following bug in ;; the Windows version of Lisp in a Box running the trial version ;; of Allegro CL 6.2. ;; Bug: "M-x slime" doesn't work in Emacs. Produces the error: ;; "Searching for program: no such file or directory, lisp";; Set function key for re-starting Slime. ;; (lispbox-start-allegro-trial-6.2) defined in 50allegrotrial62.el. (global-set-key [(f5)] '(lambda () (interactive) (lispbox-start-allegro-trial-6.2)))
;; Likewise, this one-liner also starts Slime w/ Allegro CL, assuming ;; Allegro's all you've got set up to work w/ Slime. ;; lispbox-pick-lisp defined in 00base.el. ;; (global-set-key [(f5)] 'lispbox-pick-lisp)
;; Workaround for "M-x slime". Replaces slime function in slime\slime.el. ;; 'allegro-trial-6.2 set in 50allegrotrial62.el. (defun slime () (interactive) (lispbox-pick-lisp 'allegro-trial-6.2))
This page is linked from: LispBox SLIME
CLiki pages can be edited by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively