From 6248e3263523c81ec1427f41d56faac3384a35d4 Mon Sep 17 00:00:00 2001 From: Alex Kost Date: Fri, 19 Jun 2015 21:57:04 +0300 Subject: emacs: Add "edit" command to a list of packages. * emacs/guix-base.el (guix-edit-package): New function. * emacs/guix-list.el (guix-list-edit-package): New command. Bind it to "e" key. * emacs/guix-main.scm (package-location-string): New procedure. * doc/emacs.texi (Emacs List buffer): Document "e" key binding. * doc/guix.texi (Invoking guix edit): Mention "package list" buffer. --- doc/emacs.texi | 4 ++++ doc/guix.texi | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'doc') diff --git a/doc/emacs.texi b/doc/emacs.texi index 17682c3a51..0e89a11668 100644 --- a/doc/emacs.texi +++ b/doc/emacs.texi @@ -268,6 +268,10 @@ Mark the current package for deletion. Mark the current package for upgrading. @item ^ Mark all obsolete packages for upgrading. +@item e +Edit the definition of the curent package (go to its location). This is +similar to @command{guix edit} command (@pxref{Invoking guix edit}), but +for opening a package recipe in the current Emacs instance. @item x Execute actions on the marked packages. @end table diff --git a/doc/guix.texi b/doc/guix.texi index f9c9f2ab93..f49ffa4517 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -3577,9 +3577,9 @@ launches the program specified in the @code{EDITOR} environment variable to edit the recipe of GCC@tie{}4.8.4 and that of Vim. If you are using Emacs, note that the Emacs user interface provides -similar functionality in the ``package info'' buffers created by -@kbd{M-x guix-search-by-name} and similar commands (@pxref{Emacs -Commands}). +similar functionality in the ``package info'' and ``package list'' +buffers created by @kbd{M-x guix-search-by-name} and similar commands +(@pxref{Emacs Commands}). @node Invoking guix download -- cgit v1.2.3