From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: Guix and Emacs Integration for Polyglot Development Date: Sat, 15 Sep 2018 22:40:28 +0300 Message-ID: <87h8iqim6r.fsf@gmail.com> References: <87wos9rp5y.fsf@gnu.org> <87wos5cma6.fsf@gnu.org> <87tvn9s14w.fsf@gnu.org> <87k1o5b05d.fsf@gnu.org> <875zz9gm8w.fsf@gnu.org> <875zz7epb6.fsf@gmail.com> <87in375o98.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58610) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g1GQj-0000Q1-Qj for help-guix@gnu.org; Sat, 15 Sep 2018 15:40:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g1GQf-0001GJ-JJ for help-guix@gnu.org; Sat, 15 Sep 2018 15:40:33 -0400 In-Reply-To: <87in375o98.fsf@gnu.org> (Jan Nieuwenhuizen's message of "Sat, 15 Sep 2018 07:21:55 +0200") 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: Jan Nieuwenhuizen Cc: help-guix@gnu.org Jan Nieuwenhuizen (2018-09-15 07:21 +0200) wrote: > Alex Kost writes: > >> Jan Nieuwenhuizen (2018-09-13 22:45 +0200) wrote: >> >>> (defun guix-switch-profile (&optional profile) > >> Thank you! I'm going to apply it. I have extracted the guile code and >> put it to the "scheme side" of Emacs-Guix, also I have rewritten this >> command a bit. The only thing: I don't like the name (neither >> "guix-switch-profile" nor "guix-profile-apply"). I think >> "guix-set-emacs-environment" suits better, as setting the environment is >> exactly what this command does, WDYT? > >> You may look at my version of your patch (not in "master" yet) here: >> >> https://notabug.org/alezost/emacs-guix/commit/a4bd696f0b8c564c1e654c426e9059cac1607996 > > Thank you, I enjoyed reading your rewrite, makes me happy! Moving the > scheme side makes it cleaner and I learned about -let, nice :-) "-let" (and other "-foo" procedures and macros) is from "emacs-dash" package. This library contains many useful things to work with lists: https://github.com/magnars/dash.el > I also like the new name better, you see that I struggled/renaed because > I wasn't happy with it. The initial switch-profile name was simply > chosen because that's how I use it: to switch between my named profiles. Ah, I see. >> Let me know, if you think something should be fixed there. > > I think it's OK to go in. Thanks, it is in master now. > The thing I'm not really happy with yet is > the UX of how to switch to temporary `guix environment ...' > environments. You have to do: echo $GUIX_ENVIRONMENT,