Difference between revisions of "Scheme"

From WikEmacs
Jump to: navigation, search
Line 1: Line 1:
Scheme users can use '''Geiser''' to run Guile processes via  a comint-mode REPL buffer.  
+
Emacs has built-in Scheme Mode. It provides basic features, such as syntax highlighting etc.
  
== External Links ==
+
[http://www.neilvandyke.org/quack/ Quack] by Neil Van Dyke greatly extends Emacs support for Scheme language. Check the comments in .el file for the installation instructions.
* [http://www.nongnu.org/geiser/ Geiser]
+
 
 +
Other goodies may include:
 +
* [http://mumble.net/~campbell/emacs/paredit.el ParEdit] is a mode for structured editing of S-expressions. Useful with any Lisp.
 +
* [https://github.com/jlr/rainbow-delimiters RainbowDelimiters] highlights parentheses, brackets, and braces according to their depth, each level in a different colour.
 +
 
 +
== Racket ==
 +
[http://www.nongnu.org/geiser/ Geiser] is the mode. Provides [[SLIME]]-like support for Racket and Guile. The site also contains good documentation.
 +
 
 +
Example config may look like this:
 +
<syntaxhighlight lang="lisp">
 +
(defun turn-on-parenthesis-goodies () (rainbow-delimiters-mode 1) (paredit-mode 1))
 +
(add-hook 'scheme-mode-hook 'turn-on-parenthesis-goodies)
 +
(load-file "C:/path-to-geiser/elisp/geiser.el")
 +
(setq geiser-active-implementations '(racket))
 +
(setq geiser-racket-binary "C:/path-to-racket/racket.exe")
 +
(require 'quack)
 +
</syntaxhighlight>
 +
 
 +
== Useful Links ==
 +
* [http://docs.racket-lang.org/guide/Emacs.html Racket documentation on Emacs as IDE]
  
 
[[Category:Lisp]]
 
[[Category:Lisp]]

Revision as of 09:09, 26 March 2012

Emacs has built-in Scheme Mode. It provides basic features, such as syntax highlighting etc.

Quack by Neil Van Dyke greatly extends Emacs support for Scheme language. Check the comments in .el file for the installation instructions.

Other goodies may include:

  • ParEdit is a mode for structured editing of S-expressions. Useful with any Lisp.
  • RainbowDelimiters highlights parentheses, brackets, and braces according to their depth, each level in a different colour.

Racket

Geiser is the mode. Provides SLIME-like support for Racket and Guile. The site also contains good documentation.

Example config may look like this:

(defun turn-on-parenthesis-goodies () (rainbow-delimiters-mode 1) (paredit-mode 1))
(add-hook 'scheme-mode-hook 'turn-on-parenthesis-goodies)
(load-file "C:/path-to-geiser/elisp/geiser.el")
(setq geiser-active-implementations '(racket))
(setq geiser-racket-binary "C:/path-to-racket/racket.exe")
(require 'quack)

Useful Links