alezost / guix.el

Emacs interface for GNU Guix package manager
https://emacs-guix.gitlab.io/website/
GNU General Public License v3.0
139 stars 16 forks source link
emacs guix

-- mode: org --

=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:

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).

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

If you installed Guix using [[https://www.gnu.org/software/guix/manual/en/html_node/Binary-Installation.html][Binary Installation]] method, most likely your environment (in particular, =GUILE_LOAD_PATH=) does not know where Guile modules of Guix and its dependencies are placed (they are somewhere in the store). But these Guile modules are needed for Emacs-Guix, so…

… if (during using Emacs-Guix) you encounter errors about missing modules, undefined variables, other strange errors from Guile REPL, or if you see unexpectedly small amount of Guix packages, you may try the following workaround for this problem:

If you still have a problem after the above steps, feel free to open an issue about it.

=M-x guix= is the entry point for the available features.

You can also call =M-x guix-help= to get a summary of all available commands. Here is an incomplete list of them: