1 @node Installation, The REPL, Introduction, Top
10 @node Must needs, Setting it up, Installation, Installation
13 @cindex supported versions
14 @cindex versions supported
15 If Geiser came with any guarantees, you'd break all of them by not using
16 GNU Emacs @value{EMACS_VERSION} (or better: i regularly use it with a
17 recent Emacs snapshot) and at least one of the supported Schemes,
22 @uref{http://www.racket-lang.org, Racket} @value{RACKET_VERSION} or better
24 @uref{http://www.gnu.org/software/guile, Guile} @value{GUILE_VERSION},
25 directly compiled from a recent checkout of
26 @uref{http://www.gnu.org/software/guile/repository.html, its Git
30 Since Geiser supports multiple REPLs, having both of them will just add
33 @subsubheading Downloading Geiser
35 @cindex use the source, Luke
36 You'll also need Geiser itself. The latest release tarball can be found
37 @downfile{, here}, while older versions are @uref{@value{DOWN_BASE}/,
38 here}. Just download @downfile{@value{TARBALL}, @value{TARBALL}}
39 and untar it in a directory of your choice.
41 If you feel like living on the bleeding edge, just grab Geiser from its
42 Git repository @uref{http://git.savannah.nongnu.org/cgit/geiser.git/, over
43 at Savannah}, either with the following incantation:
46 git clone git://git.sv.gnu.org/geiser.git
49 @noindent or, if you happen to live behind a firewall, with the alternative:
52 git clone http://git.sv.gnu.org/r/geiser.git
56 You can also follow Geiser's development in
57 @uref{https://github.com/jaor/geiser, one}
58 @uref{http://repo.or.cz/w/geiser.git, or}
59 @uref{http://gitorious.org/geiser, three} mirrors that are kept
60 synchronized with the one at Savannah.
62 Either way, you'll now be in possession of a copy of Geiser's libre
63 code. I'll follow you into its directory and the next section.
65 @node Setting it up, Friends, Must needs, Installation
66 @section Setting it up
68 Geiser is ready to be used out of the box without much more ado. For the
69 sake of concreteness, let's assume you put its source in the directory
70 @file{~/lisp/geiser}. All you need to do is to add the following
71 line to your Emacs initialisation file (be it @file{~/.emacs} or any of
72 its moral equivalents):
75 (load-file "~/lisp/geiser/elisp/geiser.el")
79 or simply evaluate that form inside Emacs (you wouldn't kill a friend
80 just to start using Geiser, would you?). That's it: you're ready to
82 @ref{quick-start,,go}.
85 go (@pxref{The REPL}).
89 If you obtained the Geiser source tree from a release tarball, you can
90 even continue to read this fine manual inside Emacs by opening
91 @file{doc/geiser.info} using @kbd{C-u C-h i}. The manual is also
92 available in PDF format @downfile{geiser-manual-@value{VERSION}.pdf,
96 @cindex byte-compilation
97 What? You still here? I promise the above is all that's needed to start
98 using Geiser. But, in case you are missing your @t{configure/make all
99 install} routine, by all means, you can go through those motions to byte
100 compile and install Geiser too. That is, you enter the source directory
101 and (since we grabbed the development tree) run the customary
110 I recommend that you compile Geiser in a separate directory:
113 $ mkdir build && cd build
120 Now you have two options: loading the byte-compiled Geiser from the
121 @file{elisp} subdirectory, or installing it system-wide. To load the
122 byte-code from here, add this line to your initialisation file:
125 (load "~/lisp/geiser/build/elisp/geiser-load")
129 and eval that form and you're done (you could also restart Emacs, but
130 killing your friends is widely considered bad form). Yes, that's
131 @code{load} and @file{geiser-load} instead of @code{load-file} and
134 If you prefer a system-wide installation, just type:
140 With the above spell, Geiser will be compiled and installed in a safe
141 place inside Emacs load path. To load it into Emacs you'll need,
142 @i{instead} of the @code{load-file} form above, the following line in
143 your initialisation file:
146 (require 'geiser-install)
150 Please note that we're requiring @code{geiser-install}, and @i{not}
151 @code{geiser}, and that there's no @code{load-file} to be seen this
152 time. There are some ways of fine-tuning this process, mainly by
153 providing additional arguments in the call to @t{configure}: you'll find
154 those gory details in the file called @file{INSTALL}, right at the root
155 of the source tree. The installation will also take care of placing this
156 manual, in Info format, where Emacs can find it, so you can continue to
157 learn about Geiser inside its natural habitat. See you there and into
160 @node Friends, , Setting it up, Installation
163 Although Geiser does not need them, it plays well with (and is enhanced
164 by) the following Emacs packages:
170 @item @uref{http://www.emacswiki.org/emacs/ParEdit, Paredit}.
172 Regardless of whether you use Geiser or not, you shouldn't be coding
173 in any Lisp dialect without the aid of Taylor Campbell's structured
175 @item @uref{http://nschum.de/src/emacs/company-mode/, Company}.
176 Nikolaj Schumacher's @code{company-mode} provides a generic front-end
177 for completion engines (such as Geiser's). Very nice if you like that
178 kind of thing: judge by yourself with the help of
179 @uref{http://www.screentoaster.com/watch/stU0lSRERIR1pYRFVdXVlRVFFV/company_mode_for_gnu_emacs,
181 @item @uref{http://www.neilvandyke.org/quack/, Quack}.
182 You can still use the many goodies provided by Neil van Dyke's
183 @code{quack-mode}, since most of them are not (yet) available in Geiser.
184 The only caveat might be a conflict between Quack's and Geiser's default
185 key bindings, which i'm sure you'll manage to tackle just fine. It's
186 also probably a good idea to require @code{quack} @i{after} loading
187 @file{geiser.el} (or requiring a compiled version).
191 You just need to install and setup them as usual, for every package's
192 definition of usual. Geiser will notice their presence and react
197 @c TeX-master: "geiser"