diff options
author | Ludovic Courtès <ludo@gnu.org> | 2023-05-10 00:00:53 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2023-05-10 00:23:53 +0200 |
commit | fbea62f829f92da63b65d96d09a2a48b77b2c3d1 (patch) | |
tree | dac2132fc39aca190cb2e8e477468553204ab971 /gnu/packages/scheme.scm | |
parent | 1be5bf560459d32943a82c2d3f60a1fc2ca53437 (diff) |
gnu: emacs-gerbil-mode: Move to scheme.scm.
This fixes a bug due to a top-level circular reference:
$ guix show scheme48
[...]
ice-9/boot-9.scm:1685:16: In procedure raise-exception:
error: gerbil: unbound variable
* gnu/packages/emacs-xyz.scm (emacs-gerbil-mode): Move to...
* gnu/packages/scheme.scm (emacs-gerbil-mode): ... here.
Diffstat (limited to 'gnu/packages/scheme.scm')
-rw-r--r-- | gnu/packages/scheme.scm | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gnu/packages/scheme.scm b/gnu/packages/scheme.scm index 1cfc21d69b..a0b547bfc7 100644 --- a/gnu/packages/scheme.scm +++ b/gnu/packages/scheme.scm @@ -51,6 +51,7 @@ #:use-module (guix utils) #:use-module (guix build-system asdf) #:use-module (guix build-system copy) + #:use-module (guix build-system emacs) #:use-module (guix build-system gnu) #:use-module (guix build-system trivial) #:use-module (gnu packages autotools) @@ -1211,3 +1212,19 @@ is that Gerbil modules are single instantiation, supporting high performance ahe time compilation and compiled macros.") (home-page "https://cons.io") (license `(,lgpl2.1 ,asl2.0)))) + +(define-public emacs-gerbil-mode + (package + (inherit gerbil) + (name "emacs-gerbil-mode") + (version "1.0") + (build-system emacs-build-system) + (arguments + (list #:phases #~(modify-phases %standard-phases + (add-before 'install 'change-directory + (lambda _ + (chdir "etc")))))) + (synopsis "Emacs major-mode for editing Gerbil code") + (description + "Gerbil mode provides font-lock, indentation, navigation, and REPL for +Gerbil code within Emacs."))) |