An Emacs major mode for Gauche Scheme Interpreter.
- Emacs 24.4 or later
M-x package-install-file
- syntax highlighting for regexps, char-sets, etc.
- info-look for the reference manual
- indentation for Gauche-specific syntaxes
(setq gauche-mode-info-language 'en) ; or 'ja
(list |(fact 10))
;; -->
(list #?=(fact 10))
(list #|?=(fact 10))
;; -->
(list (fact 10))
(list |(foo 42) (bar))
;; -->
(list #;(foo 42) (bar))
(list #|;(foo 42) (bar))
;; -->
(list (foo 42) (bar))
(define-module foo.bar
(export))
(define |baz 42)
;; -->
(define-module foo.bar
(export baz))
(define |baz 42)
With a prefix argument, you can export symbols with renaming.
(define-module foo.bar
(export))
(define |baz 42)
;; C-u C-c M-x
;; export-as: quux
;; -->
(define-module foo.bar
(export (rename baz quux)))
(define |baz 42)
(llist* 1 2 3)
|
;; -| (cons 1 (lcons* 2 3))
(llist* 1 2 3)
|
;; -| (lcons* 1 2 3)
Gauche-aware paredit-mode.
M-x enable-gauche-paredit-mode
or put below in your configuration file.
(add-hook 'gauche-mode-hook #'enable-gauche-paredit-mode)