After so many years of development, LISP has evolved many dialects, including Common LISP, schema, and Emacs lisp. Select a "general" learning method first.
Build Environment: sbcl + Slime
Sbcl: (Common Lisp compiler) http://www.sbcl.org/index.html
Slime: the superior lisp interaction mode for Emacs
The LISP Interaction Model in Emacs. It is used to develop common LIsp in Emacs. How to develop it and write it again next time.
========================================================== ==============================
Build a lisp environment step by step
========================================================== ======================================
1. Install sbcl
Download http://www.sbcl.org/index.html. For more information, see installfile installation:
Use the original path:
sudo INSTALL_ROOT=/usr/local sh install.sh
After the installation is complete, the lisp compiling environment has been installed and runs
$sbcl
* Prompt appears. Now we can write LISP:
* (+ 1 2)
The simplest addition result is:
* 3
2. Download Slime
Download slime to your directory:
For example :~ /Slime
3. Configure Emacs
In ~ /. Add in Emacs: (if this file is not available, create one)
;; slime(setq inferior-lisp-program "/usr/local/bin/sbcl")(add-to-list 'load-path "~/slime")(require 'slime)(slime-setup)
The path of sbcl and slime must be set correctly.
4. Run slime and start writing Lisp!
Open Emacs, M + x + SlimeStart!
Emacs starts to screen like OS startup. When the * prompt is displayed, our lisp development environment will be ready.