开始学习常见的lisp.安装在我的debian 5.03 clisp,emacs-23.1和slime中.
用.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)))
然后在emacs中创建新的lisp文件:test.lisp写简单的lisp表达式:
(defun square(x) (* x x))
然后尝试编译此代码C-c C-k
并在迷你缓冲区中查看:未连接
ps现在我尝试在emacs主菜单中单击eval defun:并在迷你缓冲区中看到:进程lisp不存在
怎么了?
谢谢.
如果你做Mx粘液怎么办?我看起来你没有粘液开始.