Go to file
Alex Kost 0111d16547 elisp: Add and use 'guix-file-name'
Various Guix (Guile) procedures are sensitive to "non-expanded" file
names and to trailing slashes in directory names, so
'directory-file-name' and 'expand-file-name' are called here and there.
Make a single function to fix it once and for all.

* elisp/guix-utils.el (guix-file-name): New function.
* elisp/guix-hash.el (guix-hash): Use it.
* elisp/guix-profiles.el (guix-profile): Use it.
* elisp/guix-misc.el (guix-apply-manifest): Use it.
* elisp/guix-repl.el (guix-repl-guile-args): Use it.
* elisp/guix-ui.el (guix-ui-buffer-name-short): Use it.
* elisp/guix-ui-profile.el (guix-profiles): Use it.
* elisp/guix-ui-generation.el
(guix-generation-packages-buffer-name-default): Use it.
2018-09-15 00:13:36 +03:00
build-aux build-env.el: Remove unneeded variable 2017-05-04 23:25:52 +03:00
doc Add guile-gcrypt dependency 2018-09-08 23:39:57 +03:00
elisp elisp: Add and use 'guix-file-name' 2018-09-15 00:13:36 +03:00
images elisp: Add 'guix-about' command 2016-12-21 00:23:56 +03:00
scheme Receive system types from guix instead of hard-coding them 2018-09-08 23:40:10 +03:00
.gitignore build: Add target to build "html" documentation 2017-04-20 12:01:36 +03:00
COPYING Initial commit 2014-07-16 09:49:41 +04:00
INSTALL Add GNU Build System infrastructure 2016-11-14 12:19:13 +03:00
Makefile.am build: Add target to build "html" documentation 2017-04-20 12:01:36 +03:00
NEWS Update NEWS 2018-09-10 18:13:15 +03:00
README README: Replace Hydra stuff with interface for store items 2018-09-10 18:09:30 +03:00
README.org Update README 2016-11-25 23:03:24 +03:00
THANKS THANKS: Add Oleg and Pierre 2018-05-14 19:09:22 +03:00
autogen.sh Add GNU Build System infrastructure 2016-11-14 12:19:13 +03:00
configure.ac Update version to 0.5 2018-09-10 18:13:46 +03:00
guix.scm guix: Replace some code with 'git-predicate' 2017-02-27 17:56:35 +03:00

README

-*- mode: org -*-

* About

=Emacs-Guix= (aka =guix.el=) provides various features and tools
for [[http://www.gnu.org/software/guix/][GNU Guix]] package manager.

It allows you to manage your Guix profile(s) from Emacs: to install,
upgrade and remove packages, to switch and remove profile generations,
to display all available info about packages and to do many other
things.

If you are [[https://github.com/emacs-evil/evil][Evil]] user, note that [[https://github.com/emacs-evil/evil-collection][Evil Collection]] provide key bindings for
Emacs-Guix.

This README provides only a basic overview on Emacs-Guix, for a full and
detailed description, see the [[https://emacs-guix.gitlab.io/website/manual/latest/html_node/index.html][info manual]] that comes with it.

In short, Emacs-Guix provides the following features:

- Interface for:

  + profiles

  + profile generations (including system generations for GuixSD)

  + packages

  + services

  + package licenses

  + package and service locations

  + [[/gnu/store]] items

- Magit-like popup interface for all guix shell commands (=M-x guix=).

- Modes to view logs of package builds (=guix-build-log-mode= and
  =guix-build-log-minor-mode=).

- Minor mode to "prettify" store file names (to replace hash parts with
  "…").

- Shell completions for all guix commands and options (for =M-x shell=
  and =M-x eshell=).

- Minor mode with additional functionality for =scheme-mode= to work
  with Guix .scm files, particularly with package modules
  (=guix-devel-mode=).

On the following screenshot you can see one of the mentioned features,
namely: "list" and "info" interface for Guix packages (this screenshot
was made for an early version of Emacs-Guix, the interface has slightly
changed since then).

[[http://i.imgur.com/gRcu14n.png]]

([[https://gitlab.com/alezost-emacs/alect-themes][alect-light]] theme is used there).

* Installation

Emacs-Guix can be installed using Guix, from [[http://melpa.org/][MELPA]], or it can be used
from a git checkout.  *Note* that it is not recommended to mix several
installations (in particular, Guix and MELPA), as it may lead to
incompatibilities in the source (=.scm=) and compiled (=.go=) Guile
files (see [[https://github.com/alezost/guix.el/issues/21][issue 21]]).

** Guix

Just use:

#+BEGIN_SRC sh
guix package -i emacs-guix
#+END_SRC

** MELPA

If you added "melpa" or "melpa-stable" archives to =package-archives= as
it is described on the [[http://melpa.org/#/getting-started][MELPA Getting Started]] page, you can install
"emacs-guix" using =M-x package-install= or =M-x list-packages=
commands.

** Git checkout

Also you can clone this git repository and use Emacs-Guix from this git
checkout (see the info manual for details).

Finally, if you have the git checkout, you can install Guix package for
the current commit of Emacs-Guix using [[file:guix.scm]] file:

#+BEGIN_SRC sh
guix package --install-from-file=guix.scm
#+END_SRC

* Usage

Call =M-x guix-help= to get a summary of all available commands.
Here is an *incomplete* list of them:

- Show packages and their definitions:

  : M-x guix-all-packages
  : M-x guix-installed-user-packages
  : M-x guix-installed-system-packages
  : M-x guix-packages-by-name
  : M-x guix-packages-by-license
  : M-x guix-packages-by-location
  : M-x guix-package-from-file
  : M-x guix-search-by-name
  : M-x guix-search-by-regexp

  : M-x guix-package-locations
  : M-x guix-find-package-definition

- Show profiles and profile generations:

  : M-x guix-profiles
  : M-x guix-generations
  : M-x guix-system-generations

- Show services and their definitions:

  : M-x guix-all-services
  : M-x guix-services-by-name
  : M-x guix-services-by-regexp
  : M-x guix-services-by-location

  : M-x guix-service-locations
  : M-x guix-find-service-definition

- Show store items:

  : M-x guix-store-live-items
  : M-x guix-store-dead-items
  : M-x guix-store-failures
  : M-x guix-store-item-referrers
  : M-x guix-store-item-references
  : M-x guix-store-item-requisites
  : M-x guix-store-item-derivers

- Show/browse package licenses:

  : M-x guix-licenses
  : M-x guix-browse-license-url
  : M-x guix-find-license-definition

- Magit-like interface:

  : M-x guix

- Miscellaneous commands:

  : M-x guix-help
  : M-x guix-about
  : M-x guix-pull
  : M-x guix-prettify-mode
  : M-x guix-build-log-mode
  : M-x guix-devel-mode