From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: "M-x guix" - magit-like interface for guix commands Date: Sat, 15 Aug 2015 18:29:30 +0300 Message-ID: <87wpww8t9h.fsf@gmail.com> References: <87zj1u704r.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43154) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZQdOx-0005xH-Rx for guix-devel@gnu.org; Sat, 15 Aug 2015 11:29:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZQdOs-0001k4-S8 for guix-devel@gnu.org; Sat, 15 Aug 2015 11:29:43 -0400 Received: from mail-lb0-x22d.google.com ([2a00:1450:4010:c04::22d]:34221) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZQdOs-0001jw-It for guix-devel@gnu.org; Sat, 15 Aug 2015 11:29:38 -0400 Received: by lbbtg9 with SMTP id tg9so60433029lbb.1 for ; Sat, 15 Aug 2015 08:29:37 -0700 (PDT) In-Reply-To: (David Thompson's message of "Fri, 14 Aug 2015 10:40:56 -0400") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: "Thompson, David" Cc: guix-devel Thompson, David (2015-08-14 17:40 +0300) wrote: > On Fri, Aug 14, 2015 at 4:19 AM, Alex Kost wrote: >> Hello, I've pushed 'wip-emacs-popup-ui' branch with emacs magit-like >> (popup) interface for guix commands. >> >> In short, here is how it looks like: >> >> "M-x guix": >> and pressing "b" there ("build"): >> >> There are some things to do, but it is ready for trying. So if anyone >> wants to look at it: >> >> 1. Set up emacs for using your guix repo directory - >> see (info "(guix) Emacs Initial Setup") >> >> 2. Switch to 'wip-emacs-popup-ui' branch and "make" it. >> >> 3. Start emacs and run "M-x guix". >> >> Oh, and it requires 'magit-popup' library which is a part of Magit 2.1.0. > > This looks awesome! I love Magit's interface. Though, I do wonder if I like it too :-) > depending on Magit is too heavy a dependency. It does not depend on the whole Magit but only on a single "magit-popup.el" file which may be installed separately (available on Melpa, for example). So potentially we can make a package just for this library and use it. However, according to its manual=C2=B9, it will be superseded by a general library which will not be a part of magit, so eventually it will be a light-weight dependency I think. Anyway, we already have a heavy dependency for Emacs interface (Geiser). > I noticed an 'e' for 'environment'. I imagine that's just a placeholder.= ;) Not really, all commands (including 'environment') are ready to use. You just specify the options you want in the magit manner and then you run "Execute" action. And the specified command is executed in Guix REPL. Specifically for 'environment' it may lead to a very interesting result as it will spawn an external process, unless --dry-run or --search-paths options were specified. But still it will=E2=80=A6 let's say=E2=80=A6 work= , but only if a user is brave enough to try it ;) Also along with "execute in REPL" action I'm going to add 2 more default actions for each command: - "execute in shell" =E2=80=94 this will be a complete alternative to writi= ng a full command manually in a shell buffer. - "copy the command line" =E2=80=94 i.e., to put the specified command argu= ments into kill ring, so later a user could do with it whatever he wants. In future there may also be added special actions for some commands. > Anyway, really cool stuff! Thank you! [1] http://magit.vc/manual/magit-popup/Defining-prefix-and-suffix-commands.= html --=20 Alex