Setting Up Gerbil Scheme Development Environment
We covered the basic installation of Gerbil Scheme for macOS and Linux in the Preface. Here cover setting up Emacs to edit Gerbil Scheme.
Emacs Configuration
Assuming that you have Emacs installed with the file ~/.emacs and the directory ~/.emacs.d/, copy the following two files into ~/.emacs.d/:
Then add the following to your ~/.emacs file:
1 (load "~/.emacs.d/gambit.el")
2 (load "~/.emacs.d/gerbil-mode.el")
3
4 (autoload 'gerbil-mode "gerbil-mode" "Gerbil editing mode." t)
5 (require 'gambit)
6 (add-hook 'inferior-scheme-mode-hook 'gambit-inferior-mode)
7 (defvar gerbil-program-name
8 (expand-file-name "/opt/gerbil/bin/gxi")) ; adjust for your GERBIL_INSTALL_PREFIX
9 (setq scheme-program-name gerbil-program-name)