From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oleg Pykhalov Subject: Re: [ANN] Emacs-Guix 0.3.4 Date: Fri, 29 Dec 2017 20:44:11 +0300 Message-ID: <87bmihtono.fsf@gmail.com> References: <878tdm38qu.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53180) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eUyhj-0001Bi-NH for help-guix@gnu.org; Fri, 29 Dec 2017 12:44:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eUyhe-0006Up-PF for help-guix@gnu.org; Fri, 29 Dec 2017 12:44:23 -0500 Received: from mail-lf0-x236.google.com ([2a00:1450:4010:c07::236]:45362) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eUyhe-0006U8-Gf for help-guix@gnu.org; Fri, 29 Dec 2017 12:44:18 -0500 Received: by mail-lf0-x236.google.com with SMTP id f13so48714539lff.12 for ; Fri, 29 Dec 2017 09:44:18 -0800 (PST) In-Reply-To: <878tdm38qu.fsf@gmail.com> (Alex Kost's message of "Thu, 28 Dec 2017 23:20:09 +0300") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Alex Kost Cc: help-guix@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello Alex, Guix Alex Kost writes: > Hello, Emacs-Guix (Emacs interface for GNU Guix) version 0.3.4 has been > released. It may be installed with "guix package -i emacs-guix". > > The main new features are: By the way, 'guix-edit' supports a new behavior: Read symbol at point and if it is a package name, return it. If it is not a package name or if current command has a prefix argument, read the name from minibuffer. (from 'guix-read-package-name-at-point' documentation string). To set it up you need the following in your '.emacs': (setq guix-read-package-name-function #'guix-read-package-name-at-point) > 1. "M-x guix-hash": it prompts for a file, calculates its hash and puts > it into kill-ring (i.e., you can insert it with "C-y"). If it is > called on a directory, it ignores VCS files (like "guix hash > --recursive --exclude-vcs"). Also it supports dired-mode. Thanks to > ng0 for the idea of this command! I like this, but as I undertand it works only with files or directories locally. Could we do something like: (defun guix-download (url) (interactive "sDownload URL: ") (insert (shell-command-to-string (concat "guix download " url " 2>/dev/null" "| tail -n 1" "| tr -d '\n'")))) which will download a thing and paste a hash at the cursor position. We have a 'guix-devel-download-package-source', but it basically the same as a shell command 'guix download PACKAGE' which requires to copy hash manually. What we probably want is to get a hash into Emacs kill-ring as guix-hash does. > 2. "M-x guix-derivation-mode": this major mode makes Guix derivations > more human readable by indenting them and by making buttons from the > store file names. It is enabled automatically in "/gnu/store/=E2=80= =A6.drv" > files. Many thanks to Oleg Pykhalov for inventing and implementing > this feature! Thank you for leading and improvements after, too! [...] > Happy Guix Year :-) Happy New Year! Oleg. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEc+OyAXw1EaDPCmAPckbhHGm3lWkFAlpGfusACgkQckbhHGm3 lWmdkhAAh5iPS1H7Slp7F6XHBlEEPplfwYNWxQWtzQ1L5OvhJrQ/XH5BLHPwXZJX ehonX0OatL1TJmHwJCKpHGpcHONjIFExQ5HHQWal8Zk26Cdjn+VBlR8WNTqIVvkZ tL08pweOl13JFx42FycUJ8+p6LZvH/YHqSjw3knyWRbo/z3JQ13Q7i37JQw1Re5m B9L54fS0jusLS9HZ3kQT9dCZQt/wLbmKj9qVvAGTKkrfVhwz8TWHA6ctVDBCjB7P rSkW9NGylhauGBeE9R3niePviNW7E9jkQ7cldNoiWK7J5mqPDBNkYimr2B/XLnsB PSZDXx7nZ2gX0sZsJkFIMbCCfxx8yQ5jjwtgBcTqDEMBtUiUpWHB9VgDXOkUSX4S nbPwXc1yE4D7Xow1tpJmrp5xsX+bJKfjD+5iERNxgVq6sATX4vx/ryc/HzYZhnX6 PWTKz6bLetiYN6w4UVAJDnuvtyilXRMctY/Z4B9tjdMVJe5jt2/GEoQNeO2J+idj 3Vz3fxyAI9N0drwdPHFLWmemW7qzodh0dKgDVcszz5ms+JlUF7wJxmRZv8AFoKoX F2jHbw/i5clU0l8LPdetaH5zo9D5F5YJqUvG6IcU8YXTqtIRCV34S8C0h8Zw0iLT bPy0iUtgNzMwM5gL3l/x2emHqLV71qjzIA5NujJCwYKeYiaa3pQ= =k/9w -----END PGP SIGNATURE----- --=-=-=--