From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id MCMFOS1D+l4QDAAA0tVLHw (envelope-from ) for ; Mon, 29 Jun 2020 19:38:21 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id sLm7NC1D+l7EVQAAbx9fmQ (envelope-from ) for ; Mon, 29 Jun 2020 19:38:21 +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 55A3B9400BF for ; Mon, 29 Jun 2020 19:38:21 +0000 (UTC) Received: from localhost ([::1]:38242 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jpzbg-0006OB-6I for larch@yhetil.org; Mon, 29 Jun 2020 15:38:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54012) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jpzbS-0006KV-Tl for help-guix@gnu.org; Mon, 29 Jun 2020 15:38:07 -0400 Received: from mout02.posteo.de ([185.67.36.66]:54623) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jpzbP-0003t3-8z for help-guix@gnu.org; Mon, 29 Jun 2020 15:38:06 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id DC0F7240100 for ; Mon, 29 Jun 2020 21:38:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1593459480; bh=ZLc9ohRpDB2Rai2sbhWpruexoEGACk+kcpiKiKHxTNY=; h=Subject:To:Cc:From:Date:From; b=TBa3E5ifjouJa9d6XaA86ZY0wbZdN1+XLv+eZW9929cXbJfUXq/X6x/hPWi14fk0G d+cWz/+TgpeO6NS8O98LMa2S8MzqbwVeT2OjBQuwQgg/UwWYSpWyRQ4yrVdnQ6Kxc5 TH1da4hbCkzati9BUO1ereKBpjnyTd9CkozYK+TEkVpshChcbf8q4u8yiRWKWOCyV0 0UVMf1+vXEHTc0/EkMk+ZThT/T9YC2GEK/qs3RLGhbXxwsCObuPxDmS9f3EWczTKsv QOwfb1kL0nGJIcu2gq+ElqsIML2Waft1TaWWAhGVbmMekOlfRvcMz1erbG6fzJS9wU tX4w1BoSCUQ/g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 49wd7P2c8tz6tmV; Mon, 29 Jun 2020 21:37:53 +0200 (CEST) Subject: Re: Erlang + Emacs profile To: zimoun , Maxim Cournoyer References: <3801410f-667e-9cac-74f3-d56a519adcc2@posteo.de> <871rm4mcm1.fsf@gmail.com> <8211be1b-21d0-36bb-c89d-a92581af594a@posteo.de> <86sgeeb6is.fsf@gmail.com> From: Zelphir Kaltstahl Message-ID: Date: Mon, 29 Jun 2020 21:37:52 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Icedove/68.8.0 MIME-Version: 1.0 In-Reply-To: <86sgeeb6is.fsf@gmail.com> Content-Language: en-US Received-SPF: pass client-ip=185.67.36.66; envelope-from=zelphirkaltstahl@posteo.de; helo=mout02.posteo.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/29 15:38:01 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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=fail (body hash did not verify) header.d=posteo.de header.s=2017 header.b=TBa3E5if; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.de (policy=none); 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: 0.09 X-TUID: ws8BFJAlnPRF Hi Simon and Maxim! I am not sure I understand all things you wrote. On 29.06.20 10:50, zimoun wrote: > Dear, > > 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. >> How did you package emacs-ob-erlang? (I did not yet package a single >> package for Guix, so I assume no prior knowledge.) Or is it a rather >> lengthy procedure to do so? I think this might be one of the next things >> I learn about Guix, which is very useful, because if a package is >> missing, one can add it oneself, without having to rely on others to add it. > For this specific package, I do not know because I have not checked but > the first step when a package is not in Guix is: try the importer! :-) > > guix import elpa -a melpa -r foo > > where foo is the name of package in MELPA. This works very well. OK nice! I'll try it for a package! I noticed, that there are only 3 Emacs Org-Babel packages available (or visible) at: https://guix.gnu.org/packages/E/page/9/. I'l try with some of those I need. And I see at https://guix.gnu.org/manual/en/html_node/Invoking-guix-import.html#Invoking-guix-import, that there are already some repositories understood, which I would probably use. Also the edit thing `guix edit emacs-ob-erlang` sounds interesting. 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. >> I usually install Emacs packages inside Emacs, instead of using Guix for >> it. I do this, because probably not all packages I want are available in >> Guix, but I have not checked this assumption at all. > I did that (installing with 'use-package') too but then I switched all > to manifest.scm file and 'with-eval-after-load' tracking channels.scm > (guix describe -f channels). This way, I have a working setup > everywhere and everytime. Anyway! :-) > > The point is that Guix has a really large collection of Emacs packages: > > --8<---------------cut here---------------start------------->8--- > $ du -sh gnu/packages/*.scm | sort -nr | head -n5 > 908K gnu/packages/crates-io.scm > 884K gnu/packages/emacs-xyz.scm > 784K gnu/packages/cran.scm > 732K gnu/packages/python-xyz.scm > 636K gnu/packages/bioinformatics.scm > --8<---------------cut here---------------end--------------->8--- > > and if your needs is not there then "guix import elpa" eases the task > for adding it. :-) 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`. 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. ~~~~ 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 glibc-utf8-locales 2.31 out /gnu/store/z7a6sbvqzb5zapwpznmjkq2rsxil6i67-glibc-utf8-locales-2.31 xiaolong@xlx200:~$ sudo -i guix package -I glibc-utf8-locales 2.31 out /gnu/store/z7a6sbvqzb5zapwpznmjkq2rsxil6i67-glibc-utf8-locales-2.31 xiaolong@xlx200:~$ guix package -I guile 3.0.4 out /gnu/store/ah16zr8mmfkqy23rr7jy5a842ca1q9h1-guile-3.0.4 erlang 21.3.8.13 out /gnu/store/6x8ycgi8hv5rh8gq3vrdbcq5sh3qfq7i-erlang-21.3.8.13 emacs-ob-erlang 20180827-1.f1a8c66 out /gnu/store/czg6wqga0hvc57axbz1cjp892k5r8ybp-emacs-ob-erlang-20180827-1.f1a8c66 icecat 68.9.0-guix0-preview1 out /gnu/store/7qakza7zdiz57l5hldd8162324fwbw8s-icecat-68.9.0-guix0-preview1 libreoffice 6.4.4.2 out /gnu/store/swk410ahw9v4k0hjmsd4f33bqw5fdyqa-libreoffice-6.4.4.2 lyx 2.3.5.1 out /gnu/store/p7z5436jhgjlgdbx44np44vzjhrwi2ns-lyx-2.3.5.1 python 3.8.2 out /gnu/store/6sr11m4i1d3vbqlmbpzmfj1lihbc5iz4-python-3.8.2 rust 1.39.0 out /gnu/store/24pbvvdwaj9kbsdfi6kgxkvxkjayfz74-rust-1.39.0 openvpn 2.4.9 out /gnu/store/3rh4i3wbkdwkrmrxy30d3f3nbg6kdl02-openvpn-2.4.9 emacs 26.3 out /gnu/store/528p0v6gg5gx53jd0x52dmghb01bfhc5-emacs-26.3 glibc-utf8-locales 2.31 out /gnu/store/z7a6sbvqzb5zapwpznmjkq2rsxil6i67-glibc-utf8-locales-2.31 guile-colorized 0.1 out /gnu/store/5h0jfssgyx49cq82wrmw57an7ngb7kkz-guile-colorized-0.1 ~~~~ 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 ~~~~ Do I need to create channels, like a custom way of structuring packages for myself, before running these commands? > All the best, > simon Thanks for all your help! Best regards, Zelphir -- repositories: https://notabug.org/ZelphirKaltstahl