[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Automatically set `geiser-guile-load-path' from .dir-locals
From: |
Maxim Cournoyer |
Subject: |
[PATCH] Automatically set `geiser-guile-load-path' from .dir-locals |
Date: |
Sun, 25 Oct 2020 14:08:59 -0400 |
Hello Guix!
I've been experimenting with the following modification to the
.dir-locals file shipped with Guix, that allows setting per-buffer
variables within Emacs when visiting a file in the same directory (or in
one of its sub-directories).
This makes life a bit easier, by ensuring that a Geiser REPL started
with C-c C-a in a file of either the main 'guix' checkout, a
'guix-core-updates' worktree or a 'guix-staging' worktree will set up
the GUILE_LOAD_PATH and GUILE_LOAD_COMPILED_PATH correctly (via the
`geiser-guile-load-path' Elisp variable).
The only requirement for it to work reliably is that any Guix checkout
or worktree name should start with "guix".
It doesn't require Geiser to be installed (it will just set the above
variable uselessly if it isn't used -- not a big deal).
What do you think? Is it useful? Should we include this as part of the
default .dir-locals of Guix?
Patch to follow!
Thanks,
Maxim
- [PATCH] Automatically set `geiser-guile-load-path' from .dir-locals,
Maxim Cournoyer <=
- Re: [PATCH] Automatically set `geiser-guile-load-path' from .dir-locals, Pierre Neidhardt, 2020/10/25
- [PATCH] .dir-locals.el: Automatically set the GEISER-GUILE-LOAD-PATH variable., Maxim Cournoyer, 2020/10/25
- Re: [PATCH] .dir-locals.el: Automatically set the GEISER-GUILE-LOAD-PATH variable., Pierre Neidhardt, 2020/10/25
- Re: [PATCH] .dir-locals.el: Automatically set the GEISER-GUILE-LOAD-PATH variable., Miguel Ángel Arruga Vivas, 2020/10/25
- Re: [PATCH] .dir-locals.el: Automatically set the GEISER-GUILE-LOAD-PATH variable., Maxim Cournoyer, 2020/10/26
- [PATCH v2] .dir-locals.el: Automatically set the GEISER-GUILE-LOAD-PATH variable., Maxim Cournoyer, 2020/10/26
- Re: [PATCH v2] .dir-locals.el: Automatically set the GEISER-GUILE-LOAD-PATH variable., Pierre Neidhardt, 2020/10/26
- Re: [PATCH v2] .dir-locals.el: Automatically set the GEISER-GUILE-LOAD-PATH variable., Miguel Ángel Arruga Vivas, 2020/10/26
- Re: [PATCH v2] .dir-locals.el: Automatically set the GEISER-GUILE-LOAD-PATH variable., Maxim Cournoyer, 2020/10/27