From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id oG2XAP5T+l72SwAA0tVLHw (envelope-from ) for ; Mon, 29 Jun 2020 20:50:06 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id IAgJOP1T+l6LbAAA1q6Kng (envelope-from ) for ; Mon, 29 Jun 2020 20:50:05 +0000 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 480A89402D1 for ; Mon, 29 Jun 2020 20:50:05 +0000 (UTC) Received: from localhost ([::1]:59176 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jq0j4-0000go-Hu for larch@yhetil.org; Mon, 29 Jun 2020 16:50:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44142) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jq0it-0000gF-VW for help-guix@gnu.org; Mon, 29 Jun 2020 16:49:51 -0400 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:39435) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jq0ir-0006s0-LX for help-guix@gnu.org; Mon, 29 Jun 2020 16:49:51 -0400 Received: by mail-wr1-x435.google.com with SMTP id q5so17958322wru.6 for ; Mon, 29 Jun 2020 13:49:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=IDBDDUfPWRVQVnPAvR4QKkzTgIzMN5qVAw2MYtcRGvE=; b=ZCabtSFvKqVa7OxnUAUFVYY0LTiOer5RH5AR1ORc5HpyKAfq+OwvJWzdGedfln/XVP Sx4oAy+Vav+LzXtspZg/evYYGtopyF8xbSotCnrsjo08y24M7tBvvHRowgtryAvmGVPj viEPW9X+1v/mqTP4GNjP+r1cfll8o8zZ8YBu2ABkfK6V4PV1B9KLDWh11mZ7S7R+WnI0 L3i4CQgJdNB/jcO8qJYIq6dzeMpzTHwS5t+JftD/4P/KAU03rcRGZq7s+5+q65qIznN0 0iw3ONEx3emZMpWDkNOwk84krsdr2Faok1RnPg41WAvWoDaao4a7hoiUWP5QZ2rj8ne0 dZBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=IDBDDUfPWRVQVnPAvR4QKkzTgIzMN5qVAw2MYtcRGvE=; b=fOJ/dY8aJuNSgjixi+xtKPxYW+H7CfLXuAT0WPtTi3BO5Ps3Uvxqqb1KQr3LwVDcS5 rDhDTRzZB1qT3w2AvGWjjlHI7O7G8ZHgSg8B14PtS7NRDUN4L2S8zHp/sTZFz5z4DJui L2iZKXwT5Ry3qWKKYVQYtKzaet3y2WoPK7IouXHWwdQbLYdCzboSeHSiIT8twgkkfUAo XqiB8TVCK9VTea1HiTlUu0WZxUXVFShtb6a+qEG/jq/rssGawbR1/qdhth9FLeyS/5Us BskUHX8qjqghttcob1OuKd+PFlACVzhUF1w3FMJ9mZEX7KeFqEWkryS7yitV6JPusDam N2uw== X-Gm-Message-State: AOAM531Wsk+bEwHmQHdR4zyNdelF6sp3mrTDqFWUPJk2ZXULn+k2wNYg KzUcxHaRi709lM79AXNs/YLUhDkIWIU= X-Google-Smtp-Source: ABdhPJzw4HdoKfjAwSdoC3JxNGRFW5ZTAY9k+bmtHBSoOFRwO4/f8qYceg9ZKD7oUbn8j6BJRWJoXw== X-Received: by 2002:adf:e684:: with SMTP id r4mr18785705wrm.68.1593463787345; Mon, 29 Jun 2020 13:49:47 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id j24sm1213473wrd.43.2020.06.29.13.49.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jun 2020 13:49:46 -0700 (PDT) From: zimoun To: Zelphir Kaltstahl , Maxim Cournoyer Subject: Re: Erlang + Emacs profile In-Reply-To: References: <3801410f-667e-9cac-74f3-d56a519adcc2@posteo.de> <871rm4mcm1.fsf@gmail.com> <8211be1b-21d0-36bb-c89d-a92581af594a@posteo.de> <86sgeeb6is.fsf@gmail.com> Date: Mon, 29 Jun 2020 22:49:45 +0200 Message-ID: <86h7utbnrq.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::435; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x435.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=ZCabtSFv; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Spam-Score: -1.71 X-TUID: gauzuQfcPKtk Dear, On Mon, 29 Jun 2020 at 21:37, Zelphir Kaltstahl wrote: >> On Thu, 25 Jun 2020 at 21:25, Zelphir Kaltstahl wrote: >> >>> * It requires keeping multiple Emacs on my system. How will they >>> interact with the same ~/.emacs.d/.init.el? >> Emacs reads init.el when it starts so yes all Emacs will interact with >> this file if you do not specify explicitly to not do it. Well, if you >> use 'with-eval-after-load' in your Emacs configuration files, it should >> not be a problem. Otherwise give a look at "emacs-guix" or try "emacs -q >> -l /path/to/your/specific/config.el", as Maxim pointed. > > OK, so basically the way would then be to have 2 Emacs, but always start > one of them with with the `-l ` argument, so that it makes use of > another config file. I am not sure to understand what you want. Could you describe what is your desired workflow to hack Erlang? > OK nice! I'll try it for a package! I noticed, that there are only 3 > Emacs Org-Babel packages available (or visible) > at:=C2=A0https://guix.gnu.org/packages/E/page/9/. I'l try with some of > those First, in case you do not know this web interface for searching packages: https://hpc.guix.info/browse Second, I am not following closely Org Babel extensions but what languages appear to you missing? > Also the edit thing `guix edit emacs-ob-erlang` sounds interesting. It depends if you use Guix System or Guix as package manager solely. For the latter, the 'edit' is read-only. > I just did the edit thing and I am not sure how to then "upload" a > package. But I will read the docs a little and will probably all clear > up. What do you mean by "upload"? If you mean contribute, you might be interested by this section of the manual: https://guix.gnu.org/manual/devel/en/guix.html#Contributing > So if I understand this correctly, there are different channels for > different types of packages, for example for Rust packages we have > `gnu/packages/crates-io.scm` and for Emacs packages we have > `gnu/packages/emacs-xyz.scm`. Channel is not the right term, in Guix parlance. To be clear, channel means a collection of packages living in files. The previous different types of packages are all in the same channel, i.e., the default channel. https://guix.gnu.org/manual/devel/en/guix.html#Channels For channels examples, you can give a look at: https://gitlab.inria.fr/guix-hpc/guix-hpc ahttps://gitlab.inria.fr/guix-hpc/guix-past > > The command `guix describe -f channels` does not work for me: > > ~~~~ > xiaolong@xlx200:~$ guix describe -f channels > guix describe: error: failed to determine origin > hint: Perhaps this `guix' command was not obtained with `guix pull'? Its = version string is > 36da62f1b9c78a2729658143a7df1845cd532afa. > ~~~~ How did you install Guix? Have you run "guix pull" before trying "guix describe"? > I did another `guix pull` and `guix package -u` and this is after a > fresh Guix package manager install and and installing the following > packages: > > ~~~~ > xiaolong@xlx200:~$ sudo -i guix package -I Note that once you have configured your system (if you use Guix System), you can run "guix pull" as a regular user and install package as regular user, independently of what your system-wide is. > The other command to show the count of packages also does not work for me: > > ~~~~ > xiaolong@xlx200:/$ sudo du -sh gnu/packages/*.scm | sort -nr | head -n5 > du: cannot access 'gnu/packages/*.scm': No such file or directory > ~~~~ You need to be in the Guix repo, i.e., you need to git clone https://git.savannah.gnu.org/git/guix.git and the subfolder gnu/packages/ contains all the packages stored by thematic.=20 > Do I need to create channels, like a custom way of structuring packages > for myself, before running these commands? To test and install your own packages, you have 3 choices: 1. ./pre-inst-env 2. local channel 3. --load-path The point #1 means you use the Contribution section, build Guix from source, then add your package to the file gnu/packages/emacs-xyz.scm (of the Git clone) and then run (from the Git cloned repo): ./pre-inst-env guix install emacs-foo The point #2 means you use a local Git repo containing your definitions of packages. You have the channels.scm file: --8<---------------cut here---------------start------------->8--- (cons* (channel (name 'my-stuff) (url "file:////path/to/my/stuff.git") (branch "master")) %default-channels) --8<---------------cut here---------------end--------------->8--- then "guix pull -C path/to/channels.scm" and you should be able to install your package emacs-foo with "guix install emacs-foo". Note that the Git repo can be also https:// or other protocols. The point #3 mean you use a local folder containing your definitions as for point #2. Then you simply run: guix install -L path/to/your/folder/containing/stuff emacs-foo Hope that helps, simon