Translated by binghe senior author & lt; Practical CommonLisp Programming & gt; published .. I bought a copy to prepare for learning CL .. it seems that there is no good environment in win .. so I had to run Ubuntu under the virtual machine to learn CL .. the following is my personal installation process .. 1. install emacssudoapt-getinstallemacs the latest emacs looks like
Translation of binghe senior < <实用common lisp编程> > Published... I bought a copy to prepare for learning CL ..
It seems that Windows does not have a good environment... so I had to run Ubuntu under the virtual machine to learn CL ..
The following is my personal installation process ..
1. Install emacs
- Sudo apt-get install emacs
The latest emacs seems to be 23. More ..
To be honest, I have never loved emacs. I used vim all the year round. But this time it seems that I can only learn the legendary artifacts ..
2. Install the lisp Environment
Same as in the book. Select sbcl
- Sudo apt-get install sbcl clisp
The specific execution program location of sbcl is/usr/bin/sbcl .. this will be used when emacs is configured later.
3. Install slime
- Sudo apt-get install slime
The position of the slime is in/usr/share/common-lisp/source/slime...
4. Configure emacs
In ~ /. Configure emacs in emacs... I have no experience, so I have to copy the online configuration as follows.
- (Tool-bar-mode-1); close the toolbar.
- (Menu-bar-mode-1); close the menu bar
- (Setq inferior-lisp-program"/Usr/bin/sbcl"); Sbcl path
- (Add-to-list 'Load-path"/Usr/share/common-lisp/source/slime"); Slime path
- (Require 'slime)
- (Slime-setup); slime Installation
I am used to the pure keyboard operations that vim does not have. So I disabled tool/menu.
5. Enter the CL interaction environment
Start emacs... and press Alt + x (the term looks like M-x)... enter slime... then wait for a while... the CL-USER appears>... It means OK ..
Okay... the next step is to learn CL ..