mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
emacs: Add 'M-x guix-installed-{user/system}-packages'.
* emacs/guix-ui-package.el (guix-installed-user-packages) (guix-installed-system-packages): New commands. * doc/emacs.texi (Emacs Commands): Document them.
This commit is contained in:
parent
5879f0d649
commit
cfb1c62aa9
2 changed files with 20 additions and 1 deletions
|
@ -150,7 +150,13 @@ Commands for displaying packages:
|
||||||
Display all/newest available packages.
|
Display all/newest available packages.
|
||||||
|
|
||||||
@item M-x guix-installed-packages
|
@item M-x guix-installed-packages
|
||||||
Display all installed packages.
|
@itemx M-x guix-installed-user-packages
|
||||||
|
@itemx M-x guix-installed-system-packages
|
||||||
|
Display installed packages. As described above, @kbd{M-x
|
||||||
|
guix-installed-packages} uses an arbitrary profile that you can specify,
|
||||||
|
while the other commands display packages installed in 2 special
|
||||||
|
profiles: @file{~/.guix-profile} and @file{/run/current-system/profile}
|
||||||
|
(only on GuixSD).
|
||||||
|
|
||||||
@item M-x guix-obsolete-packages
|
@item M-x guix-obsolete-packages
|
||||||
Display obsolete packages (the packages that are installed in a profile
|
Display obsolete packages (the packages that are installed in a profile
|
||||||
|
|
|
@ -981,6 +981,19 @@ Interactively with prefix, prompt for PROFILE."
|
||||||
(interactive (list (guix-ui-read-profile)))
|
(interactive (list (guix-ui-read-profile)))
|
||||||
(guix-package-get-display profile 'installed))
|
(guix-package-get-display profile 'installed))
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
|
(defun guix-installed-user-packages ()
|
||||||
|
"Display information about Guix packages installed in a user profile."
|
||||||
|
(interactive)
|
||||||
|
(guix-installed-packages guix-user-profile))
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
|
(defun guix-installed-system-packages ()
|
||||||
|
"Display information about Guix packages installed in a system profile."
|
||||||
|
(interactive)
|
||||||
|
(guix-installed-packages
|
||||||
|
(guix-packages-profile guix-system-profile nil t)))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun guix-obsolete-packages (&optional profile)
|
(defun guix-obsolete-packages (&optional profile)
|
||||||
"Display information about obsolete Guix packages.
|
"Display information about obsolete Guix packages.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue