[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/13: doc: Add a REPL example.
From: |
Ludovic Courtès |
Subject: |
03/13: doc: Add a REPL example. |
Date: |
Mon, 26 Oct 2015 23:02:25 +0000 |
civodul pushed a commit to branch master
in repository guix.
commit 96856613249ccef0bfce16edd945a841d1b661f7
Author: Ludovic Courtès <address@hidden>
Date: Mon Oct 26 18:44:18 2015 +0100
doc: Add a REPL example.
* doc/contributing.texi (Running Guix Before It Is Installed): Add REPL
example.
* doc/emacs.texi (Emacs General info): Add @cindex.
---
doc/contributing.texi | 24 ++++++++++++++++++++++++
doc/emacs.texi | 2 ++
2 files changed, 26 insertions(+), 0 deletions(-)
diff --git a/doc/contributing.texi b/doc/contributing.texi
index 245ce9b..d80c0d5 100644
--- a/doc/contributing.texi
+++ b/doc/contributing.texi
@@ -86,6 +86,30 @@ Similarly, for a Guile session using the Guix modules:
@example
$ ./pre-inst-env guile -c '(use-modules (guix utils)) (pk (%current-system))'
+
+;;; ("x86_64-linux")
address@hidden example
+
address@hidden
address@hidden REPL
address@hidden read-eval-print loop
address@hidden and for a REPL (@pxref{Using Guile Interactively,,, guile, Guile
+Reference Manual}):
+
address@hidden
+$ ./pre-inst-env guile
+scheme@@(guile-user)> ,use(guix)
+scheme@@(guile-user)> ,use(gnu)
+scheme@@(guile-user)> (define snakes
+ (fold-packages
+ (lambda (package lst)
+ (if (string-prefix? "python"
+ (package-name package))
+ (cons package lst)
+ lst))
+ '()))
+scheme@@(guile-user)> (length snakes)
+$1 = 361
@end example
The @command{pre-inst-env} script sets up all the environment variables
diff --git a/doc/emacs.texi b/doc/emacs.texi
index 0e901e1..b36e859 100644
--- a/doc/emacs.texi
+++ b/doc/emacs.texi
@@ -227,6 +227,8 @@ prefix argument is used. This has the same meaning as
@code{--manifest}
option (@pxref{Invoking guix package}).
@item C-c C-z
address@hidden REPL
address@hidden read-eval-print loop
Go to the Guix REPL (@pxref{The REPL,,, geiser, Geiser User Manual}).
@item h
- branch master updated (64a7192 -> 7e9b07b), Ludovic Courtès, 2015/10/26
- 02/13: gnu: Add python-file., Ludovic Courtès, 2015/10/26
- 01/13: gnu: Add RPM., Ludovic Courtès, 2015/10/26
- 03/13: doc: Add a REPL example.,
Ludovic Courtès <=
- 06/13: utils: Add 'readlink*'., Ludovic Courtès, 2015/10/26
- 05/13: guix system: Extract action processing., Ludovic Courtès, 2015/10/26
- 04/13: ui: Add 'matching-generations'., Ludovic Courtès, 2015/10/26
- 07/13: ui: Add procedures to display a profile generation., Ludovic Courtès, 2015/10/26
- 08/13: guix system: Factorize boot parameter parsing., Ludovic Courtès, 2015/10/26
- 10/13: utils: Add 'switch-symlinks', moved from (guix ui)., Ludovic Courtès, 2015/10/26
- 09/13: guix system: Add the 'list-generations' command., Ludovic Courtès, 2015/10/26
- 11/13: profiles: Add generation manipulation procedures., Ludovic Courtès, 2015/10/26
- 12/13: gnu: Add xcompmgr., Ludovic Courtès, 2015/10/26
- 13/13: gnu: Add yapet., Ludovic Courtès, 2015/10/26