2014-08-27 14:44:17 +02:00
|
|
|
@node Emacs Interface
|
|
|
|
@section Emacs Interface
|
|
|
|
|
2014-10-17 19:22:38 +02:00
|
|
|
@cindex Emacs
|
2014-08-27 14:44:17 +02:00
|
|
|
GNU Guix comes with a visual user interface for GNU@tie{}Emacs, known
|
|
|
|
as ``guix.el''. It can be used for routine package management tasks,
|
|
|
|
pretty much like the @command{guix package} command (@pxref{Invoking
|
|
|
|
guix package}). Specifically, ``guix.el'' makes it easy to:
|
|
|
|
|
|
|
|
@itemize
|
|
|
|
@item browse and display packages and generations;
|
|
|
|
@item search, install, upgrade and remove packages;
|
|
|
|
@item display packages from previous generations;
|
|
|
|
@item do some other useful things.
|
|
|
|
@end itemize
|
|
|
|
|
|
|
|
@menu
|
2014-10-17 19:22:38 +02:00
|
|
|
* Initial Setup: Emacs Initial Setup. Preparing @file{~/.emacs}.
|
|
|
|
* Usage: Emacs Usage. Using the interface.
|
|
|
|
* Configuration: Emacs Configuration. Configuring the interface.
|
2014-08-27 14:44:17 +02:00
|
|
|
@end menu
|
|
|
|
|
2014-10-17 19:22:38 +02:00
|
|
|
@node Emacs Initial Setup
|
2014-08-27 14:44:17 +02:00
|
|
|
@subsection Initial Setup
|
|
|
|
|
|
|
|
To be able to use ``guix.el'', you need to install the following
|
|
|
|
packages:
|
|
|
|
|
|
|
|
@itemize
|
|
|
|
@item
|
|
|
|
@uref{http://www.gnu.org/software/emacs/, GNU Emacs}, version 24.3 or
|
|
|
|
later;
|
|
|
|
|
|
|
|
@item
|
|
|
|
@uref{http://nongnu.org/geiser/, Geiser}, version 0.3 or later: it is
|
|
|
|
used for interacting with the Guile process.
|
|
|
|
|
|
|
|
@end itemize
|
|
|
|
|
|
|
|
When it is done, add the following into your init file (@pxref{Init
|
2014-11-04 08:20:41 +01:00
|
|
|
File,,, emacs, The GNU Emacs Manual}):
|
2014-08-27 14:44:17 +02:00
|
|
|
|
|
|
|
@example
|
|
|
|
(require 'guix-init nil t)
|
|
|
|
@end example
|
|
|
|
|
|
|
|
However there is a chance that @code{load-path} of your Emacs does not
|
|
|
|
contain a directory with ``guix.el'' (usually it is
|
|
|
|
@file{/usr/share/emacs/site-lisp/}). In that case you need to add it
|
2014-11-04 08:20:41 +01:00
|
|
|
before requiring (@pxref{Lisp Libraries,,, emacs, The GNU Emacs
|
|
|
|
Manual}):
|
2014-08-27 14:44:17 +02:00
|
|
|
|
|
|
|
@example
|
|
|
|
(add-to-list 'load-path "/path/to/directory-with-guix.el")
|
|
|
|
(require 'guix-init)
|
|
|
|
@end example
|
|
|
|
|
|
|
|
Do not worry about the efficiency of that @code{require} thing. It will
|
|
|
|
not load the whole ``guix.el'' package, it will just autoload the main
|
2014-11-04 08:20:41 +01:00
|
|
|
interactive commands (@pxref{Autoload,,, elisp, The GNU Emacs Lisp
|
|
|
|
Reference Manual}).
|
2014-08-27 14:44:17 +02:00
|
|
|
|
|
|
|
|
2014-10-17 19:22:38 +02:00
|
|
|
@node Emacs Usage
|
2014-08-27 14:44:17 +02:00
|
|
|
@subsection Usage
|
|
|
|
|
|
|
|
Once ``guix.el'' has been successfully configured, you should be able to
|
|
|
|
use commands for displaying packages and generations. This information
|
|
|
|
can be displayed in a ``list'' or ``info'' buffer.
|
|
|
|
|
|
|
|
@menu
|
2014-10-17 19:22:38 +02:00
|
|
|
* Commands: Emacs Commands. @kbd{M-x guix-@dots{}}
|
|
|
|
* General information: Emacs General info. Common for both interfaces.
|
|
|
|
* ``List'' buffer: Emacs List buffer. List-like interface.
|
|
|
|
* ``Info'' buffer: Emacs Info buffer. Help-like interface.
|
2014-08-27 14:44:17 +02:00
|
|
|
@end menu
|
|
|
|
|
2014-10-17 19:22:38 +02:00
|
|
|
@node Emacs Commands
|
2014-08-27 14:44:17 +02:00
|
|
|
@subsubsection Commands
|
|
|
|
|
emacs: Improve interface for working with multiple profiles.
Suggested by David Thompson, Ludovic Courtès and Mathieu Lirzin.
* emacs/guix-base.el (guix-profile-prompt): New procedure.
(guix-set-current-profile): Use it.
(guix-buffer-name-simple, guix-buffer-name-default, guix-buffer-name): New
procedures.
(guix-buffer-name-function, guix-profile): New variables.
(guix-set-vars, guix-get-entries, guix-get-show-entries, guix-set-buffer,
guix-history-call, guix-process-package-actions,
guix-continue-package-operation-p, guix-delete-generations,
guix-switch-to-generation): Add 'profile' argument.
* emacs/guix.el (guix-get-show-packages, guix-get-show-generations,
guix-search-by-name, guix-search-by-regexp, guix-installed-packages,
guix-obsolete-packages, guix-all-available-packages,
guix-newest-available-packages, guix-generations, guix-generations-by-time):
Likewise.
(guix-last-generations): New command.
* emacs/guix-info.el: Adjust for using 'profile' argument where needed.
* emacs/guix-list.el: Likewise.
* doc/emacs.texi (Emacs Commands): Document 'guix-last-generations' and using
"C-u" for commands.
(Emacs Buffer Names): Document 'guix-buffer-name-function'.
2014-10-17 20:21:32 +02:00
|
|
|
All commands for displaying packages and generations use the current
|
|
|
|
profile, which can be changed with
|
|
|
|
@kbd{M-x@tie{}guix-set-current-profile}. Alternatively, if you call any
|
|
|
|
of these commands with prefix argument (@kbd{C-u}), you will be prompted
|
|
|
|
for a profile just for that command.
|
|
|
|
|
|
|
|
Commands for displaying packages:
|
2014-08-27 14:44:17 +02:00
|
|
|
|
|
|
|
@table @kbd
|
emacs: Improve interface for working with multiple profiles.
Suggested by David Thompson, Ludovic Courtès and Mathieu Lirzin.
* emacs/guix-base.el (guix-profile-prompt): New procedure.
(guix-set-current-profile): Use it.
(guix-buffer-name-simple, guix-buffer-name-default, guix-buffer-name): New
procedures.
(guix-buffer-name-function, guix-profile): New variables.
(guix-set-vars, guix-get-entries, guix-get-show-entries, guix-set-buffer,
guix-history-call, guix-process-package-actions,
guix-continue-package-operation-p, guix-delete-generations,
guix-switch-to-generation): Add 'profile' argument.
* emacs/guix.el (guix-get-show-packages, guix-get-show-generations,
guix-search-by-name, guix-search-by-regexp, guix-installed-packages,
guix-obsolete-packages, guix-all-available-packages,
guix-newest-available-packages, guix-generations, guix-generations-by-time):
Likewise.
(guix-last-generations): New command.
* emacs/guix-info.el: Adjust for using 'profile' argument where needed.
* emacs/guix-list.el: Likewise.
* doc/emacs.texi (Emacs Commands): Document 'guix-last-generations' and using
"C-u" for commands.
(Emacs Buffer Names): Document 'guix-buffer-name-function'.
2014-10-17 20:21:32 +02:00
|
|
|
|
2014-08-27 14:44:17 +02:00
|
|
|
@item M-x guix-all-available-packages
|
|
|
|
@itemx M-x guix-newest-available-packages
|
|
|
|
Display all/newest available packages.
|
|
|
|
|
|
|
|
@item M-x guix-installed-packages
|
emacs: Improve interface for working with multiple profiles.
Suggested by David Thompson, Ludovic Courtès and Mathieu Lirzin.
* emacs/guix-base.el (guix-profile-prompt): New procedure.
(guix-set-current-profile): Use it.
(guix-buffer-name-simple, guix-buffer-name-default, guix-buffer-name): New
procedures.
(guix-buffer-name-function, guix-profile): New variables.
(guix-set-vars, guix-get-entries, guix-get-show-entries, guix-set-buffer,
guix-history-call, guix-process-package-actions,
guix-continue-package-operation-p, guix-delete-generations,
guix-switch-to-generation): Add 'profile' argument.
* emacs/guix.el (guix-get-show-packages, guix-get-show-generations,
guix-search-by-name, guix-search-by-regexp, guix-installed-packages,
guix-obsolete-packages, guix-all-available-packages,
guix-newest-available-packages, guix-generations, guix-generations-by-time):
Likewise.
(guix-last-generations): New command.
* emacs/guix-info.el: Adjust for using 'profile' argument where needed.
* emacs/guix-list.el: Likewise.
* doc/emacs.texi (Emacs Commands): Document 'guix-last-generations' and using
"C-u" for commands.
(Emacs Buffer Names): Document 'guix-buffer-name-function'.
2014-10-17 20:21:32 +02:00
|
|
|
Display all installed packages.
|
2014-08-27 14:44:17 +02:00
|
|
|
|
|
|
|
@item M-x guix-obsolete-packages
|
emacs: Improve interface for working with multiple profiles.
Suggested by David Thompson, Ludovic Courtès and Mathieu Lirzin.
* emacs/guix-base.el (guix-profile-prompt): New procedure.
(guix-set-current-profile): Use it.
(guix-buffer-name-simple, guix-buffer-name-default, guix-buffer-name): New
procedures.
(guix-buffer-name-function, guix-profile): New variables.
(guix-set-vars, guix-get-entries, guix-get-show-entries, guix-set-buffer,
guix-history-call, guix-process-package-actions,
guix-continue-package-operation-p, guix-delete-generations,
guix-switch-to-generation): Add 'profile' argument.
* emacs/guix.el (guix-get-show-packages, guix-get-show-generations,
guix-search-by-name, guix-search-by-regexp, guix-installed-packages,
guix-obsolete-packages, guix-all-available-packages,
guix-newest-available-packages, guix-generations, guix-generations-by-time):
Likewise.
(guix-last-generations): New command.
* emacs/guix-info.el: Adjust for using 'profile' argument where needed.
* emacs/guix-list.el: Likewise.
* doc/emacs.texi (Emacs Commands): Document 'guix-last-generations' and using
"C-u" for commands.
(Emacs Buffer Names): Document 'guix-buffer-name-function'.
2014-10-17 20:21:32 +02:00
|
|
|
Display obsolete packages (the packages that are installed in a profile
|
|
|
|
but cannot be found among available packages).
|
2014-08-27 14:44:17 +02:00
|
|
|
|
|
|
|
@item M-x guix-search-by-name
|
|
|
|
Display package(s) with the specified name.
|
|
|
|
|
|
|
|
@item M-x guix-search-by-regexp
|
|
|
|
Search for packages by a specified regexp. By default ``name'',
|
|
|
|
``synopsis'' and ``description'' of the packages will be searched. This
|
|
|
|
can be changed by modifying @code{guix-search-params} variable.
|
|
|
|
|
|
|
|
@end table
|
|
|
|
|
emacs: Improve interface for working with multiple profiles.
Suggested by David Thompson, Ludovic Courtès and Mathieu Lirzin.
* emacs/guix-base.el (guix-profile-prompt): New procedure.
(guix-set-current-profile): Use it.
(guix-buffer-name-simple, guix-buffer-name-default, guix-buffer-name): New
procedures.
(guix-buffer-name-function, guix-profile): New variables.
(guix-set-vars, guix-get-entries, guix-get-show-entries, guix-set-buffer,
guix-history-call, guix-process-package-actions,
guix-continue-package-operation-p, guix-delete-generations,
guix-switch-to-generation): Add 'profile' argument.
* emacs/guix.el (guix-get-show-packages, guix-get-show-generations,
guix-search-by-name, guix-search-by-regexp, guix-installed-packages,
guix-obsolete-packages, guix-all-available-packages,
guix-newest-available-packages, guix-generations, guix-generations-by-time):
Likewise.
(guix-last-generations): New command.
* emacs/guix-info.el: Adjust for using 'profile' argument where needed.
* emacs/guix-list.el: Likewise.
* doc/emacs.texi (Emacs Commands): Document 'guix-last-generations' and using
"C-u" for commands.
(Emacs Buffer Names): Document 'guix-buffer-name-function'.
2014-10-17 20:21:32 +02:00
|
|
|
By default, these commands display each output on a separate line. If
|
|
|
|
you prefer to see a list of packages---i.e., a list with a package per
|
|
|
|
line, use the following setting:
|
2014-09-19 07:57:36 +02:00
|
|
|
|
|
|
|
@example
|
|
|
|
(setq guix-package-list-type 'package)
|
|
|
|
@end example
|
|
|
|
|
emacs: Improve interface for working with multiple profiles.
Suggested by David Thompson, Ludovic Courtès and Mathieu Lirzin.
* emacs/guix-base.el (guix-profile-prompt): New procedure.
(guix-set-current-profile): Use it.
(guix-buffer-name-simple, guix-buffer-name-default, guix-buffer-name): New
procedures.
(guix-buffer-name-function, guix-profile): New variables.
(guix-set-vars, guix-get-entries, guix-get-show-entries, guix-set-buffer,
guix-history-call, guix-process-package-actions,
guix-continue-package-operation-p, guix-delete-generations,
guix-switch-to-generation): Add 'profile' argument.
* emacs/guix.el (guix-get-show-packages, guix-get-show-generations,
guix-search-by-name, guix-search-by-regexp, guix-installed-packages,
guix-obsolete-packages, guix-all-available-packages,
guix-newest-available-packages, guix-generations, guix-generations-by-time):
Likewise.
(guix-last-generations): New command.
* emacs/guix-info.el: Adjust for using 'profile' argument where needed.
* emacs/guix-list.el: Likewise.
* doc/emacs.texi (Emacs Commands): Document 'guix-last-generations' and using
"C-u" for commands.
(Emacs Buffer Names): Document 'guix-buffer-name-function'.
2014-10-17 20:21:32 +02:00
|
|
|
Commands for displaying generations:
|
|
|
|
|
|
|
|
@table @kbd
|
|
|
|
|
|
|
|
@item M-x guix-generations
|
|
|
|
List all the generations.
|
|
|
|
|
|
|
|
@item M-x guix-last-generations
|
|
|
|
List the @var{N} last generations. You will be prompted for the number
|
|
|
|
of generations.
|
|
|
|
|
|
|
|
@item M-x guix-generations-by-time
|
|
|
|
List generations matching time period. You will be prompted for the
|
|
|
|
period using Org mode time prompt based on Emacs calendar (@pxref{The
|
2014-11-04 08:20:41 +01:00
|
|
|
date/time prompt,,, org, The Org Manual}).
|
emacs: Improve interface for working with multiple profiles.
Suggested by David Thompson, Ludovic Courtès and Mathieu Lirzin.
* emacs/guix-base.el (guix-profile-prompt): New procedure.
(guix-set-current-profile): Use it.
(guix-buffer-name-simple, guix-buffer-name-default, guix-buffer-name): New
procedures.
(guix-buffer-name-function, guix-profile): New variables.
(guix-set-vars, guix-get-entries, guix-get-show-entries, guix-set-buffer,
guix-history-call, guix-process-package-actions,
guix-continue-package-operation-p, guix-delete-generations,
guix-switch-to-generation): Add 'profile' argument.
* emacs/guix.el (guix-get-show-packages, guix-get-show-generations,
guix-search-by-name, guix-search-by-regexp, guix-installed-packages,
guix-obsolete-packages, guix-all-available-packages,
guix-newest-available-packages, guix-generations, guix-generations-by-time):
Likewise.
(guix-last-generations): New command.
* emacs/guix-info.el: Adjust for using 'profile' argument where needed.
* emacs/guix-list.el: Likewise.
* doc/emacs.texi (Emacs Commands): Document 'guix-last-generations' and using
"C-u" for commands.
(Emacs Buffer Names): Document 'guix-buffer-name-function'.
2014-10-17 20:21:32 +02:00
|
|
|
|
|
|
|
@end table
|
2014-08-27 14:44:17 +02:00
|
|
|
|
2014-10-21 09:48:28 +02:00
|
|
|
You can also invoke the @command{guix pull} command (@pxref{Invoking
|
|
|
|
guix pull}) from Emacs using:
|
|
|
|
|
|
|
|
@table @kbd
|
|
|
|
@item M-x guix-pull
|
|
|
|
With @kbd{C-u}, make it verbose.
|
|
|
|
@end table
|
|
|
|
|
|
|
|
Once @command{guix pull} has succeeded, the Guix REPL is restared. This
|
|
|
|
allows you to keep using the Emacs interface with the updated Guix.
|
|
|
|
|
2014-10-17 19:22:38 +02:00
|
|
|
@node Emacs General info
|
2014-08-27 14:44:17 +02:00
|
|
|
@subsubsection General information
|
|
|
|
|
|
|
|
The following keys are available for both ``list'' and ``info'' types of
|
|
|
|
buffers:
|
|
|
|
|
|
|
|
@table @kbd
|
|
|
|
@item l
|
|
|
|
@itemx r
|
|
|
|
Go backward/forward by the history of the displayed results (this
|
|
|
|
history is similar to the history of the Emacs @code{help-mode} or
|
|
|
|
@code{Info-mode}).
|
|
|
|
|
|
|
|
@item g
|
|
|
|
Revert current buffer: update information about the displayed
|
|
|
|
packages/generations and redisplay it.
|
|
|
|
|
|
|
|
@item R
|
|
|
|
Redisplay current buffer (without updating information).
|
|
|
|
|
|
|
|
@item C-c C-z
|
|
|
|
Go to the Guix REPL (@pxref{The REPL,,, geiser, Geiser User Manual}).
|
|
|
|
|
|
|
|
@item h
|
|
|
|
@itemx ?
|
|
|
|
Describe current mode to see all available bindings.
|
|
|
|
|
|
|
|
@end table
|
|
|
|
|
|
|
|
@emph{Hint:} If you need several ``list'' or ``info'' buffers, you can
|
|
|
|
simlpy @kbd{M-x clone-buffer} them, and each buffer will have its own
|
|
|
|
history.
|
|
|
|
|
|
|
|
@emph{Warning:} Name/version pairs cannot be used to identify packages
|
|
|
|
(because a name is not necessarily unique), so ``guix.el'' uses special
|
|
|
|
identifiers that live only during a guile session, so if the Guix REPL
|
|
|
|
was restarted, you may want to revert ``list'' buffer (by pressing
|
|
|
|
@kbd{g}).
|
|
|
|
|
2014-10-17 19:22:38 +02:00
|
|
|
@node Emacs List buffer
|
2014-08-27 14:44:17 +02:00
|
|
|
@subsubsection ``List'' buffer
|
|
|
|
|
|
|
|
An interface of a ``list'' buffer is similar to the interface provided
|
2014-11-04 08:20:41 +01:00
|
|
|
by ``package.el'' (@pxref{Package Menu,,, emacs, The GNU Emacs Manual}).
|
2014-08-27 14:44:17 +02:00
|
|
|
|
|
|
|
Default key bindings available for both ``package-list'' and
|
|
|
|
``generation-list'' buffers:
|
|
|
|
|
|
|
|
@table @kbd
|
|
|
|
@item m
|
|
|
|
Mark the current entry.
|
|
|
|
@item M
|
|
|
|
Mark all entries.
|
|
|
|
@item u
|
2014-09-06 16:00:45 +02:00
|
|
|
Unmark the current entry (with prefix, unmark all entries).
|
2014-08-27 14:44:17 +02:00
|
|
|
@item @key{DEL}
|
|
|
|
Unmark backward.
|
|
|
|
@item S
|
|
|
|
Sort entries by a specified column.
|
|
|
|
@end table
|
|
|
|
|
|
|
|
A ``package-list'' buffer additionally provides the following bindings:
|
|
|
|
|
|
|
|
@table @kbd
|
|
|
|
@item @key{RET}
|
|
|
|
Describe marked packages (display available information in a
|
|
|
|
``package-info'' buffer).
|
|
|
|
@item i
|
2014-09-19 07:57:36 +02:00
|
|
|
Mark the current package for installation.
|
2014-08-27 14:44:17 +02:00
|
|
|
@item d
|
2014-09-19 07:57:36 +02:00
|
|
|
Mark the current package for deletion.
|
2014-09-06 16:00:45 +02:00
|
|
|
@item U
|
2014-09-19 07:57:36 +02:00
|
|
|
Mark the current package for upgrading.
|
2014-08-27 14:44:17 +02:00
|
|
|
@item ^
|
2014-09-06 16:00:45 +02:00
|
|
|
Mark all obsolete packages for upgrading.
|
2014-08-27 14:44:17 +02:00
|
|
|
@item x
|
2014-09-19 07:57:36 +02:00
|
|
|
Execute actions on the marked packages.
|
2014-08-27 14:44:17 +02:00
|
|
|
@end table
|
|
|
|
|
|
|
|
A ``generation-list'' buffer additionally provides the following
|
|
|
|
bindings:
|
|
|
|
|
|
|
|
@table @kbd
|
|
|
|
@item @key{RET}
|
|
|
|
List packages installed in the current generation.
|
|
|
|
@item i
|
|
|
|
Describe marked generations (display available information in a
|
|
|
|
``generation-info'' buffer).
|
2014-10-10 21:58:30 +02:00
|
|
|
@item s
|
|
|
|
Switch profile to the current generation.
|
2014-10-05 10:31:23 +02:00
|
|
|
@item d
|
|
|
|
Mark the current generation for deletion (with prefix, mark all
|
|
|
|
generations).
|
|
|
|
@item x
|
|
|
|
Execute actions on the marked generations---i.e., delete generations.
|
emacs: Add interface for comparing generations.
Suggested by Ludovic Courtès.
* doc/emacs.texi (Emacs List buffer): Document new key bindings.
* emacs/guix-base.el (guix-generation-packages-buffer-name-function,
guix-generation-packages-update-buffer, guix-output-name-width): New
variables.
(guix-generation-file, guix-manifest-file, guix-generation-packages,
guix-generation-packages-buffer-name-default,
guix-generation-packages-buffer-name-long,
guix-generation-packages-buffer-name, guix-generation-packages-buffer,
guix-generation-insert-package, guix-generation-insert-packages,
guix-profile-generation-manifest-file,
guix-profile-generation-packages-buffer): New procedures.
* emacs/guix-list.el: Add key bindings for comparing generations.
(guix-generation-list-generations-to-compare,
guix-generation-list-show-added-packages,
guix-generation-list-show-removed-packages, guix-generation-list-compare,
guix-generation-list-ediff-manifests, guix-generation-list-diff-manifests,
guix-generation-list-ediff-packages, guix-generation-list-diff-packages,
guix-generation-list-ediff, guix-generation-list-diff): New procedures.
* emacs/guix-messages.el (guix-messages): Add 'generation-diff' search type.
(guix-message-outputs-by-diff): New procedure.
* emacs/guix-utils.el (guix-diff-switches): New variable.
(guix-diff): New procedure.
* emacs/guix-main.scm (package/output-sexps): Handle 'generation-diff' search
type.
(manifest-entry->package-specification,
manifest-entries->package-specifications, generation-package-specifications,
generation-package-specifications+paths, generation-difference): New
procedures.
2014-11-02 11:58:21 +01:00
|
|
|
@item e
|
|
|
|
Run Ediff (@pxref{Top,,, ediff, The Ediff Manual}) on package outputs
|
|
|
|
installed in the 2 marked generations. With prefix argument, run Ediff
|
|
|
|
on manifests of the marked generations.
|
|
|
|
@item D
|
|
|
|
@itemx =
|
|
|
|
Run Diff (@pxref{Diff Mode,,, emacs, The GNU Emacs Manual}) on package
|
|
|
|
outputs installed in the 2 marked generations. With prefix argument,
|
|
|
|
run Diff on manifests of the marked generations.
|
|
|
|
@item +
|
|
|
|
List package outputs added to the latest marked generation comparing
|
|
|
|
with another marked generation.
|
|
|
|
@item -
|
|
|
|
List package outputs removed from the latest marked generation comparing
|
|
|
|
with another marked generation.
|
2014-08-27 14:44:17 +02:00
|
|
|
@end table
|
|
|
|
|
2014-10-17 19:22:38 +02:00
|
|
|
@node Emacs Info buffer
|
2014-08-27 14:44:17 +02:00
|
|
|
@subsubsection ``Info'' buffer
|
|
|
|
|
|
|
|
The interface of an ``info'' buffer is similar to the interface of
|
2014-11-04 08:20:41 +01:00
|
|
|
@code{help-mode} (@pxref{Help Mode,,, emacs, The GNU Emacs Manual}).
|
2014-08-27 14:44:17 +02:00
|
|
|
|
|
|
|
``Info'' buffer contains some buttons (as usual you may use @key{TAB} /
|
|
|
|
@kbd{S-@key{TAB}} to move between buttons---@pxref{Mouse References,,,
|
2014-11-04 08:20:41 +01:00
|
|
|
emacs, The GNU Emacs Manual}) which can be used to:
|
2014-08-27 14:44:17 +02:00
|
|
|
|
|
|
|
@itemize @bullet
|
|
|
|
@item (in a ``package-info'' buffer)
|
|
|
|
|
|
|
|
@itemize @minus
|
|
|
|
@item install/remove a package;
|
|
|
|
@item jump to a package location;
|
|
|
|
@item browse home page of a package;
|
|
|
|
@item describe packages from ``Inputs'' fields.
|
|
|
|
@end itemize
|
|
|
|
|
|
|
|
@item (in a ``generation-info'' buffer)
|
|
|
|
|
|
|
|
@itemize @minus
|
|
|
|
@item remove a generation;
|
2014-10-10 21:58:30 +02:00
|
|
|
@item switch to a generation;
|
2014-08-27 14:44:17 +02:00
|
|
|
@item list packages installed in a generation;
|
|
|
|
@item jump to a generation directory.
|
|
|
|
@end itemize
|
|
|
|
|
|
|
|
@end itemize
|
|
|
|
|
|
|
|
|
2014-10-17 19:22:38 +02:00
|
|
|
@node Emacs Configuration
|
2014-08-27 14:44:17 +02:00
|
|
|
@subsection Configuration
|
|
|
|
|
|
|
|
There are many variables you can modify to change the appearance or
|
|
|
|
behavior of Emacs user interface. Some of these variables are described
|
|
|
|
in this section. Also you can use Custom Interface (@pxref{Easy
|
2014-11-04 08:20:41 +01:00
|
|
|
Customization,,, emacs, The GNU Emacs Manual}) to explore/set variables
|
|
|
|
(not all) and faces.
|
2014-08-27 14:44:17 +02:00
|
|
|
|
|
|
|
@menu
|
2014-10-17 19:22:38 +02:00
|
|
|
* Guile and Build Options: Emacs Build Options. Specifying how packages are built.
|
|
|
|
* Buffer Names: Emacs Buffer Names. Names of Guix buffers.
|
|
|
|
* Keymaps: Emacs Keymaps. Configuring key bindings.
|
|
|
|
* Appearance: Emacs Appearance. Settings for visual appearance.
|
2014-08-27 14:44:17 +02:00
|
|
|
@end menu
|
|
|
|
|
2014-10-17 19:22:38 +02:00
|
|
|
@node Emacs Build Options
|
2014-08-27 14:44:17 +02:00
|
|
|
@subsubsection Guile and Build Options
|
|
|
|
|
|
|
|
@table @code
|
|
|
|
@item guix-guile-program
|
|
|
|
If you have some special needs for starting a Guile process, you may set
|
|
|
|
this variable, for example:
|
|
|
|
|
|
|
|
@example
|
|
|
|
(setq guix-guile-program '("/bin/guile" "--no-auto-compile"))
|
|
|
|
@end example
|
|
|
|
|
|
|
|
@item guix-use-substitutes
|
|
|
|
Has the same meaning as @code{--no-substitutes} option (@pxref{Invoking
|
|
|
|
guix build}).
|
|
|
|
|
|
|
|
@item guix-dry-run
|
|
|
|
Has the same meaning as @code{--dry-run} option (@pxref{Invoking guix
|
|
|
|
build}).
|
|
|
|
|
|
|
|
@end table
|
|
|
|
|
2014-10-17 19:22:38 +02:00
|
|
|
@node Emacs Buffer Names
|
2014-09-19 07:57:36 +02:00
|
|
|
@subsubsection Buffer Names
|
|
|
|
|
|
|
|
Default names of ``guix.el'' buffers (``*Guix@tie{}@dots{}*'') may be
|
|
|
|
changed with the following variables:
|
|
|
|
|
|
|
|
@table @code
|
|
|
|
@item guix-package-list-buffer-name
|
|
|
|
@item guix-output-list-buffer-name
|
|
|
|
@item guix-generation-list-buffer-name
|
|
|
|
@item guix-package-info-buffer-name
|
|
|
|
@item guix-output-info-buffer-name
|
|
|
|
@item guix-generation-info-buffer-name
|
|
|
|
@item guix-repl-buffer-name
|
|
|
|
@item guix-internal-repl-buffer-name
|
|
|
|
@end table
|
|
|
|
|
emacs: Improve interface for working with multiple profiles.
Suggested by David Thompson, Ludovic Courtès and Mathieu Lirzin.
* emacs/guix-base.el (guix-profile-prompt): New procedure.
(guix-set-current-profile): Use it.
(guix-buffer-name-simple, guix-buffer-name-default, guix-buffer-name): New
procedures.
(guix-buffer-name-function, guix-profile): New variables.
(guix-set-vars, guix-get-entries, guix-get-show-entries, guix-set-buffer,
guix-history-call, guix-process-package-actions,
guix-continue-package-operation-p, guix-delete-generations,
guix-switch-to-generation): Add 'profile' argument.
* emacs/guix.el (guix-get-show-packages, guix-get-show-generations,
guix-search-by-name, guix-search-by-regexp, guix-installed-packages,
guix-obsolete-packages, guix-all-available-packages,
guix-newest-available-packages, guix-generations, guix-generations-by-time):
Likewise.
(guix-last-generations): New command.
* emacs/guix-info.el: Adjust for using 'profile' argument where needed.
* emacs/guix-list.el: Likewise.
* doc/emacs.texi (Emacs Commands): Document 'guix-last-generations' and using
"C-u" for commands.
(Emacs Buffer Names): Document 'guix-buffer-name-function'.
2014-10-17 20:21:32 +02:00
|
|
|
By default, the name of a profile is also displayed in a ``list'' or
|
|
|
|
``info'' buffer name. To change this behavior, use
|
|
|
|
@code{guix-buffer-name-function} variable.
|
|
|
|
|
|
|
|
For example, if you want to display all types of results in a single
|
2014-09-19 07:57:36 +02:00
|
|
|
buffer (in such case you will probably use a history (@kbd{l}/@kbd{r})
|
|
|
|
extensively), you may do it like this:
|
|
|
|
|
|
|
|
@example
|
|
|
|
(let ((name "Guix Universal"))
|
|
|
|
(setq
|
|
|
|
guix-package-list-buffer-name name
|
|
|
|
guix-output-list-buffer-name name
|
|
|
|
guix-generation-list-buffer-name name
|
|
|
|
guix-package-info-buffer-name name
|
|
|
|
guix-output-info-buffer-name name
|
emacs: Improve interface for working with multiple profiles.
Suggested by David Thompson, Ludovic Courtès and Mathieu Lirzin.
* emacs/guix-base.el (guix-profile-prompt): New procedure.
(guix-set-current-profile): Use it.
(guix-buffer-name-simple, guix-buffer-name-default, guix-buffer-name): New
procedures.
(guix-buffer-name-function, guix-profile): New variables.
(guix-set-vars, guix-get-entries, guix-get-show-entries, guix-set-buffer,
guix-history-call, guix-process-package-actions,
guix-continue-package-operation-p, guix-delete-generations,
guix-switch-to-generation): Add 'profile' argument.
* emacs/guix.el (guix-get-show-packages, guix-get-show-generations,
guix-search-by-name, guix-search-by-regexp, guix-installed-packages,
guix-obsolete-packages, guix-all-available-packages,
guix-newest-available-packages, guix-generations, guix-generations-by-time):
Likewise.
(guix-last-generations): New command.
* emacs/guix-info.el: Adjust for using 'profile' argument where needed.
* emacs/guix-list.el: Likewise.
* doc/emacs.texi (Emacs Commands): Document 'guix-last-generations' and using
"C-u" for commands.
(Emacs Buffer Names): Document 'guix-buffer-name-function'.
2014-10-17 20:21:32 +02:00
|
|
|
guix-generation-info-buffer-name name
|
|
|
|
guix-buffer-name-function #'guix-buffer-name-simple))
|
2014-09-19 07:57:36 +02:00
|
|
|
@end example
|
|
|
|
|
2014-10-17 19:22:38 +02:00
|
|
|
@node Emacs Keymaps
|
2014-08-27 14:44:17 +02:00
|
|
|
@subsubsection Keymaps
|
|
|
|
|
|
|
|
If you want to change default key bindings, use the following keymaps
|
2014-11-04 08:20:41 +01:00
|
|
|
(@pxref{Init Rebinding,,, emacs, The GNU Emacs Manual}):
|
2014-08-27 14:44:17 +02:00
|
|
|
|
|
|
|
@table @code
|
|
|
|
@item guix-list-mode-map
|
|
|
|
Parent keymap with general keys for ``list'' buffers.
|
|
|
|
|
|
|
|
@item guix-package-list-mode-map
|
|
|
|
Keymap with specific keys for ``package-list'' buffers.
|
|
|
|
|
2014-09-19 07:57:36 +02:00
|
|
|
@item guix-output-list-mode-map
|
|
|
|
Keymap with specific keys for ``output-list'' buffers.
|
|
|
|
|
2014-08-27 14:44:17 +02:00
|
|
|
@item guix-generation-list-mode-map
|
|
|
|
Keymap with specific keys for ``generation-list'' buffers.
|
|
|
|
|
|
|
|
@item guix-info-mode-map
|
|
|
|
Parent keymap with general keys for ``info'' buffers.
|
|
|
|
|
|
|
|
@item guix-package-info-mode-map
|
|
|
|
Keymap with specific keys for ``package-info'' buffers.
|
|
|
|
|
2014-09-19 07:57:36 +02:00
|
|
|
@item guix-output-info-mode-map
|
|
|
|
Keymap with specific keys for ``output-info'' buffers.
|
|
|
|
|
2014-08-27 14:44:17 +02:00
|
|
|
@item guix-generation-info-mode-map
|
|
|
|
Keymap with specific keys for ``generation-info'' buffers.
|
|
|
|
|
|
|
|
@end table
|
|
|
|
|
2014-10-17 19:22:38 +02:00
|
|
|
@node Emacs Appearance
|
2014-08-27 14:44:17 +02:00
|
|
|
@subsubsection Appearance
|
|
|
|
|
|
|
|
You can change almost any aspect of ``list'' / ``info'' buffers using
|
|
|
|
the following variables:
|
|
|
|
|
|
|
|
@table @code
|
|
|
|
@item guix-list-column-format
|
|
|
|
@itemx guix-list-column-titles
|
|
|
|
@itemx guix-list-column-value-methods
|
|
|
|
Specify the columns, their names, what and how is displayed in ``list''
|
|
|
|
buffers.
|
|
|
|
|
|
|
|
@item guix-info-displayed-params
|
|
|
|
@itemx guix-info-insert-methods
|
|
|
|
@itemx guix-info-ignore-empty-vals
|
|
|
|
@itemx guix-info-param-title-format
|
|
|
|
@itemx guix-info-multiline-prefix
|
|
|
|
@itemx guix-info-indent
|
|
|
|
@itemx guix-info-fill-column
|
|
|
|
@itemx guix-info-delimiter
|
|
|
|
Various settings for ``info'' buffers.
|
|
|
|
|
|
|
|
@end table
|