From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id sMRYHgP/MmOl9AAAbAwnHQ (envelope-from ) for ; Tue, 27 Sep 2022 15:47:47 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id EE9vHQP/MmOYlwAAG6o9tA (envelope-from ) for ; Tue, 27 Sep 2022 15:47:47 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3B76EA0A for ; Tue, 27 Sep 2022 15:47:47 +0200 (CEST) Received: from localhost ([::1]:34514 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1odAw6-0003lv-2n for larch@yhetil.org; Tue, 27 Sep 2022 09:47:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50302) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1od8uA-0007ce-1D for guix-devel@gnu.org; Tue, 27 Sep 2022 07:37:43 -0400 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]:38494) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1od8u7-0004Hq-Nt for guix-devel@gnu.org; Tue, 27 Sep 2022 07:37:37 -0400 Received: by mail-wr1-x429.google.com with SMTP id m4so231987wrr.5 for ; Tue, 27 Sep 2022 04:37:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:from:to:cc:subject:date; bh=AHhJqYvrAaEH8PNdlkWefUP3UCxJKvrqP1rq7XxnGc4=; b=hkxHj44Lu8w8YE7ikPCPWcMkj8AO6bPi/NjaTSRCgJc5YHRaHiyjSxsZng5qYURJ7G o2h2OlvsAMJoKZm8us7UsoKPh3UOaQYjChgL57OSIR2+/XjIk2OmPEHyi54x8TCoB/X/ 86zRjsQGXRpLiMSAIEamkD2NeoLoUmAIc8qHO3j1FG7JpvV+jXjb012/ozusYou/3Y1W Mp4QZ4h+ALs7I8VCBaxL2q8+JQLPtyg8Qc7OOQKHMDBTfvJdTMXwKCcIBvuZxORRJFue OBt5gPXx+3PZ/sjlE7eLMG7+UrLRexGU6ZHUgMHu1ToVm71Z8ONpOUY/HtFI+vwPrhwz XJdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:x-gm-message-state:from:to:cc:subject :date; bh=AHhJqYvrAaEH8PNdlkWefUP3UCxJKvrqP1rq7XxnGc4=; b=ycZO2wCkX3e9XuPfv7qjfkU5xxJqbvrYBEkOwb3B4bt2vokQ5vF4t51ln4qyICJ8+P J9G7V1H6/RO5BMyhNFFdRNbq0pVi99tJjGfMwHB/RTzwu5+1u2FnmkDZztXjNXH5qrpo 6sdeGxqYko8UWhKWfNPIDccIj7NtLyMZOQDIcM5a7xLs4PsFWP+U1OxzjtTKuI+xq4po NTgLqSqLLw2jYMA5AWKWkjnEj8Beti2sPvK+9TmLBRodC6pG17INQ0RAmoSEUrXEnKY7 KJuv7BzqF/F17EtTeEfkrm8ZV+0fAosHwjB2WvGATX0CliiAQb6gMKjjaUoQ5BLh7nXo bkww== X-Gm-Message-State: ACrzQf15mtqpwuqSzh/x9dPcDSSYwcRzY7dv0wALItDMG1qPqfGBC7jc 5Jw3p8eDRmdqvxGF8NM5nT38Tc0E7o0= X-Google-Smtp-Source: AMsMyM62bk1j978qlkPJcbCJMp9PI1YjwO8BkN43AobOd69nuSU9UPxvtdxHJTqwvgrF7RrIT+vJ7Q== X-Received: by 2002:a5d:424c:0:b0:22a:f651:545e with SMTP id s12-20020a5d424c000000b0022af651545emr15912118wrr.639.1664278651878; Tue, 27 Sep 2022 04:37:31 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id f4-20020adfe904000000b0022ac38fb20asm1504976wrm.111.2022.09.27.04.37.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Sep 2022 04:37:31 -0700 (PDT) From: zimoun To: Olivier Dion , "Thompson, David" , guix-devel Subject: Re: Emacs integration for 'guix shell' In-Reply-To: <87czbiugxn.fsf@laura> References: <87czbiugxn.fsf@laura> Date: Tue, 27 Sep 2022 11:15:24 +0200 Message-ID: <86wn9puqj7.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x429.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list 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+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1664286467; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=AHhJqYvrAaEH8PNdlkWefUP3UCxJKvrqP1rq7XxnGc4=; b=hQYtGhH6OklZgIvuopYu5v/aVwS32g0yYjj47DlqPmq/Wr12TZuKTbkfRHoHpn1n0bTD3V pCcM+2sUXOcZtdDWh++7BLPhHRQhxAjQJN8RHhkkP+4b5/bWMv+RkcjDp8gIEVnVR62wer ATGTSDED58Dj3tV2RAMxu4jNtEHB7CF4ZZVyx2HOySxf4ZS/EHnTNGXYdRFHwx1+WVcQf3 c+WJMF6qjRRRLAogXafsw1BFz/BAqitYwsCxind07gEqgwOWfnmh4SQ/XkORYK6V9EKKgN b711OZgGG1r5eZTjCsYjZ6LrKfbDJTP3Okzqgp5W9VEgdaGs74e/WhagCBEpig== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664286467; a=rsa-sha256; cv=none; b=rD7IqPA4juVdeyDu8NOjHtHwpFwgKf3Itqdp9ocYTiBxTQdxmdPHSat8IpbjCWtQN6jhJj KPVA6tDzS3LrOYWQDPl9VlE6QiuNPc5RDPiGz9ROCLBOYIMSxh64lA76FqDc03Hn5kuUn9 4xujRepzvrBtzrXJN1+28z2/NON5BPKNbxm/J1Br4FAPHEN4kjLtpoxwSmfCjXT3Nws2UR 2R3Tc6uL9JMGKHsCbu9Rpihx2hKY6w6HkryPDrwK0sUaqaqgdCfy/jPyejlIHoCj8OhAVx rZj0gjPPYIJQfMpw3XpQsX+Et/aq4Gsy6ScquhxBHK0UdpDGz2fnlC0EuqPPiQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=hkxHj44L; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -8.14 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=hkxHj44L; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 3B76EA0A X-Spam-Score: -8.14 X-Migadu-Scanner: scn0.migadu.com X-TUID: oREtQEjjXxsa Hi, Thanks for sharing. On Mon, 26 Sep 2022 at 14:30, Olivier Dion via "Development of GNU Guix and= the GNU System distribution." wrote: > dev-env: > --8<---------------cut here---------------start------------->8--- > #!/bin/sh > guix shell \ > --pure \ > dyninst \ > gdb \ > git \ > guix \ > lcov \ > guile-quickcheck \ > perf \ > lttng-ust \ > lttng-tools \ > --development libpatch \ > -- $@ > --8<---------------cut here---------------end--------------->8--- > > Note the latest script where I have development packages for libpatch, > but also other utitilies that are good to have for developer. Well, I am not happy with my workflow but I have something similar for some projects. However, instead of this list, I have a =E2=80=9Cgeneral=E2= =80=9D script (named guixify) under ~/.local/bin/ which roughly reads: --8<---------------cut here---------------start------------->8--- #!/bin/sh guix time-machine -C channels.scm \ -- shell --pure \ -m manifest.scm \ -- $@ --8<---------------cut here---------------end--------------->8--- where manifest.scm and channels.scm are kept with the Git project. I prefer to pin a specific Guix revision to avoid bad surprises. :-) Well, in a project, I just run: guixify make # run make using the Guix environment guixify # enter in the environment I thought to write an extension but I am not convinced by the interface I want. :-) Cheers, simon