aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Kost <alezost@gmail.com>2015-06-18 16:21:13 +0300
committerAlex Kost <alezost@gmail.com>2015-06-19 12:59:32 +0300
commit14a983c28ad0a06aeb90c9fc8ce8108fcf4f4eac (patch)
treec4518b305b413b8421a25f81b9dd5dee2cf2b0f6
parent7833db1f30d78aea3b7cb042723c2bd7d00e64ad (diff)
downloadguix-14a983c28ad0a06aeb90c9fc8ce8108fcf4f4eac.tar
guix-14a983c28ad0a06aeb90c9fc8ce8108fcf4f4eac.tar.gz
emacs: Add completions for 'edit' and 'size' commands.
* emacs/guix-pcomplete.el (guix-pcomplete-complete-command-arg): Complete package names for 'guix edit' and 'guix size' commands. (guix-pcomplete-complete-option-arg): Complete '-s/--system' option for 'guix size'.
-rw-r--r--emacs/guix-pcomplete.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/emacs/guix-pcomplete.el b/emacs/guix-pcomplete.el
index fa71dd5e21..dd42556163 100644
--- a/emacs/guix-pcomplete.el
+++ b/emacs/guix-pcomplete.el
@@ -254,7 +254,8 @@ group - the argument.")
"Complete argument for guix COMMAND."
(cond
((member command
- '("archive" "build" "environment" "lint" "refresh"))
+ '("archive" "build" "edit" "environment" "lint" "refresh"
+ "size"))
(while t
(pcomplete-here (guix-pcomplete-all-packages))))
(t (pcomplete-here* (pcomplete-entries)))))
@@ -302,7 +303,7 @@ INPUT is the current partially completed string."
((option? "-m" "--manifest")
(complete* (pcomplete-entries)))))
- ((and (command? "archive" "build")
+ ((and (command? "archive" "build" "size")
(option? "-s" "--system"))
(complete* guix-pcomplete-systems))