开发者

Clisp + Emacs compile-and-load-file

开发者 https://www.devze.com 2023-01-07 08:59 出处:网络
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

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?

开发者_StackOverflow中文版

Thank you.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消