diff options
author | Alex Kost <alezost@gmail.com> | 2016-01-12 18:10:14 +0300 |
---|---|---|
committer | Alex Kost <alezost@gmail.com> | 2016-01-18 19:11:46 +0300 |
commit | 27a2e483370f9d08b9724a2c82b1fee9b15ce58a (patch) | |
tree | f60a021d284758212762f4d78baac0eea9013096 /emacs | |
parent | e119ba900877970325b2158dd6d3c700feaab516 (diff) | |
download | patches-27a2e483370f9d08b9724a2c82b1fee9b15ce58a.tar patches-27a2e483370f9d08b9724a2c82b1fee9b15ce58a.tar.gz |
emacs: Add 'guix-search-by-name'.
* emacs/guix-ui-package.el (guix-search-by-name): New command.
* doc/emacs.texi (Emacs Commands): Document it.
Diffstat (limited to 'emacs')
-rw-r--r-- | emacs/guix-ui-package.el | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/emacs/guix-ui-package.el b/emacs/guix-ui-package.el index 0696c4b565..29514527ce 100644 --- a/emacs/guix-ui-package.el +++ b/emacs/guix-ui-package.el @@ -939,6 +939,17 @@ Interactively with prefix, prompt for PROFILE." (or params guix-package-search-params))) ;;;###autoload +(defun guix-search-by-name (regexp &optional profile) + "Search for Guix packages matching REGEXP in a package name. +If PROFILE is nil, use `guix-current-profile'. +Interactively with prefix, prompt for PROFILE." + (interactive + (list (read-string "Package name by regexp: " + nil 'guix-package-search-history) + (guix-ui-read-profile))) + (guix-search-by-regexp regexp '(name) profile)) + +;;;###autoload (defun guix-installed-packages (&optional profile) "Display information about installed Guix packages. If PROFILE is nil, use `guix-current-profile'. |