[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

05/05: doc: Document 'guix-edit' Emacs command.

From: Alex Kost
Subject: 05/05: doc: Document 'guix-edit' Emacs command.
Date: Sun, 07 Feb 2016 08:30:59 +0000

alezost pushed a commit to branch master
in repository guix.

commit 7c1b1ae24affad95c0595830d0163cdf771ec787
Author: Alex Kost <address@hidden>
Date:   Fri Feb 5 14:51:45 2016 +0300

    doc: Document 'guix-edit' Emacs command.
    * doc/emacs.texi (Emacs Commands): Document "M-x guix-edit".
    * doc/guix.texi (Invoking guix edit): Mention it.
 doc/emacs.texi |   22 ++++++++++++++++++++++
 doc/guix.texi  |    6 +++---
 2 files changed, 25 insertions(+), 3 deletions(-)

diff --git a/doc/emacs.texi b/doc/emacs.texi
index 19dc87f..d46c17c 100644
--- a/doc/emacs.texi
+++ b/doc/emacs.texi
@@ -219,6 +219,28 @@ With @kbd{C-u}, make it verbose.
 Once @command{guix pull} has succeeded, the Guix REPL is restared.  This
 allows you to keep using the Emacs interface with the updated Guix.
+Finally, there is an Emacs variant of @command{guix edit} command
+(@pxref{Invoking guix edit}):
address@hidden @kbd
address@hidden M-x guix-edit
+As with @kbd{M-x guix-packages-by-name}, you can press @key{TAB} to
+complete a package name.
address@hidden table
+If you are contributing to Guix, you may find it useful for @kbd{M-x
+guix-edit} to open package files from your git directory.  This can be
+done by setting @code{guix-directory} variable.  For example, after
+(setq guix-directory "~/src/guix")
address@hidden example
address@hidden guix-edit guix} opens
address@hidden/src/guix/gnu/packages/package-management.scm} file.
 @node Emacs General info
 @subsection General information
diff --git a/doc/guix.texi b/doc/guix.texi
index 66ab384..80a1621 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -4201,9 +4201,9 @@ launches the program specified in the @code{VISUAL} or in 
 and that of Vim.
 If you are using Emacs, note that the Emacs user interface provides
-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}).
address@hidden guix-edit} command and a 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]