Главная

LISP


Установка под Linux(Emacs) :


;; 1) Установите sbcl - реализацию Common Lisp 
sudo apt-get install sbcl

;; 2) Установите quicklisp - менеджер библиотек для Common Lisp  
wget https://beta.quicklisp.org/quicklisp.lisp
sbcl --load quicklisp.lisp

(quicklisp-quickstart:install)

(ql:add-to-init-file)

(quit)

;; 3) Установите SLIME :
;; 3.a) добавляем MELPA repository в init.el:
(require 'package)
(let* ((no-ssl (and (memq system-type '(windows-nt ms-dos))
                    (not (gnutls-available-p))))
       (proto (if no-ssl "http" "https")))
  (when no-ssl
    (warn "\
Your version of Emacs does not support SSL connections,
which is unsafe because it allows man-in-the-middle attacks.
There are two things you can do about this warning:
1. Install an Emacs version that does support SSL and be safe.
2. Remove this warning from your init file so you won't see it again."))
  ;; Comment/uncomment these two lines to enable/disable MELPA and MELPA Stable as desired
  (add-to-list 'package-archives (cons "melpa" (concat proto "://melpa.org/packages/")) t)
  ;;(add-to-list 'package-archives (cons "melpa-stable" (concat proto "://stable.melpa.org/packages/")) t)
  (when (< emacs-major-version 24)
    ;; For important compatibility libraries like cl-lib
    (add-to-list 'package-archives (cons "gnu" (concat proto "://elpa.gnu.org/packages/")))))
(package-initialize)

;; 3.б) заходим в Emacs и набираем команду M-x package-list-packages 
;; 3.в) набираем команду M-x package-install затем Enter
;; 3.в) набираем  slime  затем Enter 

;; 3.г) добавляем в init.el:
;; Set your lisp system and, optionally, some contribs
(setq inferior-lisp-program "sbcl")
(setq slime-contribs '(slime-fancy))

;; 3.д) заходим в Emacs и набираем команду M-x slime 



Полезные ссылки: