-
Notifications
You must be signed in to change notification settings - Fork 5
/
sweep.doc
68 lines (52 loc) · 1.74 KB
/
sweep.doc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
\documentclass[11pt]{article}
\usepackage{times}
\usepackage{pl}
\usepackage{html}
\sloppy
\makeindex
\onefile
\htmloutput{.} % Output directory
\htmlmainfile{sweep} % Main document file
\bodycolor{white} % Page colour
\begin{document}
\title{sweep: SWI-Prolog Embedded in Emacs}
\author{Eshel Yaron\email{[email protected]}}
\maketitle
\begin{abstract}
Sweep is an embedding of SWI-Prolog in GNU Emacs. It provides an
interface for executing Prolog queries and consuming their results
from Emacs Lisp. Sweep further builds on top of this interface and
on top of the standard Emacs facilities to provide advanced features
for developing SWI-Prolog programs in Emacs.
\end{abstract}
\pagebreak
\tableofcontents
\section{Installation}
\label{sec:sweep-installation}
Installing Sweep requires:
\begin{itemize}
\item Emacs 27 or later, and
\item SWI-Prolog 8.5.18 or later.
\end{itemize}
Sweep is available from NonGNU ELPA, to install it simply type in
Emacs \texttt{M-x package-install RET sweeprolog RET}.
Note that in Emacs prior to version 28, you need to explicitly enable
NonGNU ELPA by adding something like the following to your Emacs
configuration:
\begin{code}
(with-eval-after-load 'package
(add-to-list 'package-archives '("nongnu" . "https://elpa.nongnu.org/nongnu/")))
\end{code}
\section{Getting started}
\label{sec:sweep-getting-started}
After installing the \texttt{sweeprolog} Elisp library, load it into
Emacs:
\begin{code}
(require 'sweeprolog)
\end{code}
All set! You can now use Sweep for Prolog development and for
integrating Prolog into your Emacs Lisp code. For a full description
of the different features of Sweep, see
\href{https://eshelyaron.com/sweep.html}{the Sweep manual}.
\printindex
\end{document}