.dir-locals.el: Allow Guix root-dir overrides when working via Tramp.

* .dir-localsl.el: Add only the local part of the root directory to the
guile search path. This lets you use Tramp to hack on a remote Guix
checkout.

Signed-off-by: Leo Famulari <leo@famulari.name>
This commit is contained in:
Brian Cully 2022-05-21 15:10:24 -04:00 committed by Leo Famulari
parent 4775460ba9
commit cedf97ed6e
No known key found for this signature in database
GPG Key ID: 2646FA30BACA7F08
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@
;; Hence the following "when", which might otherwise be unnecessary;
;; it prevents causing an error when root-dir-unexpanded is nil.
(when root-dir-unexpanded
(let* ((root-dir (expand-file-name root-dir-unexpanded))
(let* ((root-dir (file-local-name (expand-file-name root-dir-unexpanded)))
;; Workaround for bug https://issues.guix.gnu.org/43818.
(root-dir* (directory-file-name root-dir)))