Next: , Previous: , Up: Development   [Contents][Index]


4.2 Emacs integration

For a truly pleasant development experience, Emacs can connect to a Hoot REPL using Geiser. To use it, install the geiser-hoot extension.

To install using the Emacs package manager, first add MELPA as a package repository in ~/.emacs.d/init.el:

(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
(package-initialize)

Then install geiser-hoot with M-x package-install geiser-hoot.

To install using Guix, run:

guix install emacs-geiser-hoot

Then restart Emacs.

Once installed, the extension can be loaded by evaluating (require 'geiser-hoot).

To start a REPL within NodeJS, use M-x run-hoot.

To connect to a REPL within a web browser, use M-x connect-to-hoot.

Refer to the Geiser manual for further information.