.dir-locals.el: Use guix repl as geiser-guile-binary.

See discussion at <https://gitlab.com/nonguix/nonguix/-/merge_requests/346>.

Default geiser-guile-binary is guile, which uses an old guix.  This leads to
annoying errors when trying to work with the this repository from geiser.  So,
set the variable to '("guix" "repl"), which will use the current guix command,
making everything work properly.  Note that this may be unexpected for someone
working with a local Guix checkout (differing Guix version) and may need
adjusting then.

* .dir-locals.el (scheme-mode): Add geiser-guile-binary setting.

Signed-off-by: John Kehayias <john.kehayias@protonmail.com>
This commit is contained in:
Tomas Volf 2023-10-08 23:03:46 +02:00 committed by John Kehayias
parent 05b7d0423d
commit a7f7269f5f
No known key found for this signature in database
GPG key ID: 499097AE5EA815D9

View file

@ -13,7 +13,11 @@
(c-mode . ((c-file-style . "gnu")))
(scheme-mode
.
((indent-tabs-mode . nil)
;; Note this next setting will use the current guix as the geiser binary;
;; one working with a local guix checkout may want something different.
((geiser-guile-binary . ("guix" "repl"))
(indent-tabs-mode . nil)
(eval . (put 'eval-when 'scheme-indent-function 1))
(eval . (put 'call-with-prompt 'scheme-indent-function 1))
(eval . (put 'test-assert 'scheme-indent-function 1))