Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Construction of lisp Environment on window platform

Shulou Source: shulou.com Published: 2022-06-03 07:27:57 10月04日 Update

Download lisp in a box package and install emacs: enter lispbox-x.x/emacs-x.xx/bin and click run addpm.exe to install it automatically for you. Start emacs, press Cmurx Cmurf, enter ~, find the default home directory, create a new _ emacs file in this directory, and set it in the file (add-to-list 'load-path "C:/lispbox-0.7/slime-20110205.092829"); your SLIME directory

(setq inferior-lisp-program "C:/lispbox-0.7/ccl-1.6-windowsx86/wx86cl.exe"); your Lisp system

(require 'slime)

(slime-setup) restart emacs, press Mmurx, enter slime, can you get a lisp interactive environment? Good luck:)

Lispbox is the integrated development environment of Common Lisp. The truth is that Lispbox is only configured with a combination of Emacs editor, SLIME (Emacs's advanced Lisp interaction mode), Quicklisp library management tools, and CCL Lisp compiler.

Together, these tools give you the set of features you expect an ide to give you, and more. Lispbox allows you to put it into use quickly and easily.

Lispbox allows new Lisp programmers to start almost painlessly in a first-class development environment. Therefore, it is strongly recommended that beginners download and install Lispbox as the beginning of learning Common Lisp. It's easy to use Lispbox, just download and extract the version of your operating system. No installation required! You can start using Lispbox by running lispbox.bat (Windows) / lispbox.sh (Linux) / Emacs (OS X).

The default Emacs does not enable UTF-8 character set support, so it does not support Chinese, or even Chinese annotations. If you enter Chinese, the following error will occur:

CL-USER > 'Chinese support

Slime-net-send: Coding system iso-latin-1-unix not suitable for "00004c (: emacs-rex (swank:listener-eval\" 'Chinese support)

\ ")\" COMMON-LISP-USER\ ": repl-thread 4)

To support Chinese language, you need to modify the file emacs-23.2\ site-lisp\ lispbox.el in the decompressed folder.

Add a line after the line (require 'slime):

(setq slime-net-coding-system 'utf-8-unix)

You can also set it to other codes and restart Lispbox.

Tags: Chinese file support environment input one line tools directory development combination run no advanced operating system function just can pass good luck character character set Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Shulou Information Apple Microsoft MySQL