Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Clisp + Emacs compile-and-load-file

Starting to learn Common lisp. Instal in my debian 5.03 clisp, emacs-23.1 and slime.

Write in .emacs:

(setq inferior-lisp-program "/usr/bin/clisp") ; your Lisp system
     (add-to-list 'load-path "/home/slime/")  ; your SLIME directory
     (require 'slime)
     (slime-setup '(slime-scratch slime-editing-commands slime-repl))

(global-font-lock-mode t) 
(show-paren-mode 1) 
(add-hook 'lisp-mode-hook '(lambda () 
      (local-set-key (kbd "RET") 'newline-and-indent))) 

Then create in emacs new lisp file: test.lisp write simple lisp expression:

(defun square(x)
  (* x x))

Then try to compile this code C-c C-k and see in minibuffer: Not connected

p.s. Now i try to click in eval defun in emacs main menu: and see in minibuffer: Process lisp does not exist

What's wrong?

Thank you.

like image 670
0xAX Avatar asked Jul 17 '10 14:07

0xAX


1 Answers

What happens if you do M-x slime ? I looks like you don't have slime started.

like image 171
deinst Avatar answered Sep 30 '22 19:09

deinst