Emacs+lisp the environment to build

Source: Internet
Author: User

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/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.