... | @@ -2,17 +2,17 @@ These instructions assume you have already installed the [dependencies](installa |
... | @@ -2,17 +2,17 @@ These instructions assume you have already installed the [dependencies](installa |
|
|
|
|
|
* Download and install [Emacs](https://www.gnu.org/software/emacs/download.html).
|
|
* Download and install [Emacs](https://www.gnu.org/software/emacs/download.html).
|
|
|
|
|
|
* Download [Clozure Common Lisp (CCL)](https://ccl.clozure.com/download.html). Unpack the archive, rename the folder to `ccl` and then move it to `C:\Program Files (x86)\`.
|
|
* Download and install a Common Lisp implementation. Both [Clozure Common Lisp (CCL)](https://ccl.clozure.com/download.html) and [Steel Bank Common Lisp](http://www.sbcl.org) are freely available. Unpack the archive and move it to `C:\Program Files (x86)\`.
|
|
|
|
|
|
* Download the latest version of [Slime](https://github.com/slime/slime). Unpack it and rename the unpacked folder to `slime` and move it to `C:\Program Files (x86)\`.
|
|
* Download the latest version of [Slime](https://github.com/slime/slime). Unpack it and rename the unpacked folder to `slime` and move it to `C:\Program Files (x86)\`.
|
|
|
|
|
|
* Add the location of CCL to your `Path` system environment variable. Go to the Settings and then edit the value for the variable `Path` (in the list of System variables) by appending the CCL directory. Make sure these paths are indeed correct. Here is an example of how your `Path` variable could look:
|
|
* Add the location of your Lisp implementation (CCL or SBCL) to your `Path` system environment variable. Go to the Settings and then edit the value for the variable `Path` (in the list of System variables) by appending the correct directory. Make sure these paths are indeed correct. Here is an example of how your `Path` variable could look for CCL:
|
|
```
|
|
```
|
|
C:\Program Files (x86)\Graphviz2.32\bin;C:\Program Files (x86)\ccl;C:\Program Files (x86)\gnuplot\bin
|
|
C:\Program Files (x86)\Graphviz2.32\bin;C:\Program Files (x86)\ccl;C:\Program Files (x86)\gnuplot\bin
|
|
```
|
|
```
|
|
If you have your programs somewhere else, use those directories.
|
|
If you have your programs somewhere else, use those directories.
|
|
|
|
|
|
* For configuring your Emacs, use a text editor to create a plain text file called `.emacs` (without extension but with a dot) in your “Application Data” folder. The location of this folder depends on your Windows version, e.g. on Windows 10 the folder might be called `C:/Users/Your-Username/AppData/Roaming`. For finding out where your “Application Data” folder is, open the Windows command prompt from the start menu and type `echo %APPDATA%`. Add the following lines to this `.emacs` file and adapt the path to your Slime folder.
|
|
* For configuring your Emacs, use a text editor to create a plain text file called `.emacs` (without extension but with a dot at the start) in your “Application Data” folder. The location of this folder depends on your Windows version, e.g. on Windows 10 the folder might be called `C:/Users/Your-Username/AppData/Roaming`. For finding out where your “Application Data” folder is, open the Windows command prompt from the start menu and type `echo %APPDATA%`. Add the following lines to this `.emacs` file and adapt the path to your Slime folder.
|
|
|
|
|
|
```
|
|
```
|
|
(custom-set-variables
|
|
(custom-set-variables
|
... | @@ -23,7 +23,10 @@ These instructions assume you have already installed the [dependencies](installa |
... | @@ -23,7 +23,10 @@ These instructions assume you have already installed the [dependencies](installa |
|
'(indent-tabs-mode nil)
|
|
'(indent-tabs-mode nil)
|
|
'(make-backup-files nil))
|
|
'(make-backup-files nil))
|
|
|
|
|
|
|
|
;; when using CCL:
|
|
(setq inferior-lisp-program "wx86cl64.exe")
|
|
(setq inferior-lisp-program "wx86cl64.exe")
|
|
|
|
;; when using SBCL:
|
|
|
|
(setq inferior-lisp-program "sbcl.exe")
|
|
|
|
|
|
(add-to-list 'load-path "C:/Program Files (x86)/slime") ;; adapt the path to slime
|
|
(add-to-list 'load-path "C:/Program Files (x86)/slime") ;; adapt the path to slime
|
|
(require 'slime)
|
|
(require 'slime)
|
... | @@ -41,11 +44,11 @@ These instructions assume you have already installed the [dependencies](installa |
... | @@ -41,11 +44,11 @@ These instructions assume you have already installed the [dependencies](installa |
|
(quicklisp-quickstart:install)
|
|
(quicklisp-quickstart:install)
|
|
(ql:add-to-init-file)
|
|
(ql:add-to-init-file)
|
|
```
|
|
```
|
|
The last line will create a file called `ccl-init.lisp` in your home directory.
|
|
The last line will create a file called `ccl-init` (when you use CCL) or `sbclrc` (when you use SBCL) in your home directory.
|
|
|
|
|
|
* Open the file `ccl-init.lisp` in your home directory and add the following line to the end of this text file:
|
|
* Open the file that was just created in your home directory and add the following line to the end of this text file:
|
|
```
|
|
```
|
|
(load "C:/Users/Your-Username/Babel/init-babel")
|
|
(load "C:/Users/Your-Username/path/to/Babel/init-babel")
|
|
```
|
|
```
|
|
|
|
|
|
* The next time you start Emacs, Babel will be automatically initialised. You can test your installation by opening the file `Babel/test-babel-installation.lisp` in Emacs. Read the comments in this file and evaluate the expressions one by one. |
|
* The next time you start Emacs, Babel will be automatically initialised. You can test your installation by opening the file `Babel/test-babel-installation.lisp` in Emacs. Read the comments in this file and evaluate the expressions one by one. |