1 Preparation: Installation of SBCL and slime
If Emacs is not installed on Linux, you can download Lispbox (emacs+sbcl+slime) installation directly.
# yum INSTALLSBCL emacs-slime
20% for Lisper: Configure Emacs to start
New ~/.emacs file, enter the simplest Emacs personalization configuration below
; Close the menu bar and toolbars
(menu-bar-mode-1)
(tool-bar-mode-1)
3 Preliminary slime: Forever helloworld!
For example, use Lispbox under Windows platform to start emacs+slime through Lispbox.bat. The following is a series of basic Emacs shortcuts to complete our first HelloWorld program.
A) C-x 3 horizontal Segmentation window
b c-x C-f Enter the filename and create a new file
c) Write the Lisp function hi as shown in the following figure
d) c-c c-c compile Lisp source code
e) c-x o switch to the Slime interpreter window on the right
f) Call the Hi function to see the results
reference materials
Common Lisp Learning Notes (0): Starting from Slime
http://liyaos.com/blog/common-lisp-notes-0/