summaryrefslogtreecommitdiff
path: root/.dir-locals.el
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2022-05-21 15:10:24 -0400
committerLeo Famulari <leo@famulari.name>2023-03-05 14:04:05 -0500
commitcedf97ed6ee4eba8c39bfe6cc0efe33fcb977ccf (patch)
treec0ad3b07b9d57ea1c5183dd4afa4b39acbc485cd /.dir-locals.el
parent4775460ba9a60c3c09966216da10686a70b8fadb (diff)
.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>
Diffstat (limited to '.dir-locals.el')
-rw-r--r--.dir-locals.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/.dir-locals.el b/.dir-locals.el
index b8b0fec4cae..8635b29565c 100644
--- a/.dir-locals.el
+++ b/.dir-locals.el
@@ -43,7 +43,7 @@
43 ;; Hence the following "when", which might otherwise be unnecessary; 43 ;; Hence the following "when", which might otherwise be unnecessary;
44 ;; it prevents causing an error when root-dir-unexpanded is nil. 44 ;; it prevents causing an error when root-dir-unexpanded is nil.
45 (when root-dir-unexpanded 45 (when root-dir-unexpanded
46 (let* ((root-dir (expand-file-name root-dir-unexpanded)) 46 (let* ((root-dir (file-local-name (expand-file-name root-dir-unexpanded)))
47 ;; Workaround for bug https://issues.guix.gnu.org/43818. 47 ;; Workaround for bug https://issues.guix.gnu.org/43818.
48 (root-dir* (directory-file-name root-dir))) 48 (root-dir* (directory-file-name root-dir)))
49 49