summaryrefslogtreecommitdiff
path: root/emacs/guix-base.el
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/guix-base.el')
-rw-r--r--emacs/guix-base.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/emacs/guix-base.el b/emacs/guix-base.el
index 851ee895b9..587288eaf9 100644
--- a/emacs/guix-base.el
+++ b/emacs/guix-base.el
@@ -172,6 +172,14 @@ If PATH is relative, it is considered to be relative to
(move-to-column col)
(recenter 1))))
+(defun guix-edit-package (id)
+ "Edit (go to location of) package with ID."
+ (let ((loc (guix-eval-read (guix-make-guile-expression
+ 'package-location-string id))))
+ (if loc
+ (guix-find-location loc)
+ (message "Couldn't find package location."))))
+
;;; Buffers and auto updating.