[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Erlang + Emacs profile

From: Zelphir Kaltstahl
Subject: Re: Erlang + Emacs profile
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

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 <path>` 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: I'l try with some of those
I need. And I see
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

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

I did another `guix pull` and `guix package -u` and this is after a
fresh Guix package manager install and and installing the following

xiaolong@xlx200:~$ sudo -i guix package -I
glibc-utf8-locales      2.31    out     

xiaolong@xlx200:~$ sudo -i guix package -I
glibc-utf8-locales      2.31    out     
xiaolong@xlx200:~$ guix package -I
guile   3.0.4   out     /gnu/store/ah16zr8mmfkqy23rr7jy5a842ca1q9h1-guile-3.0.4
erlang       out     
emacs-ob-erlang 20180827-1.f1a8c66      out     
icecat  68.9.0-guix0-preview1   out     
libreoffice out     
lyx out     /gnu/store/p7z5436jhgjlgdbx44np44vzjhrwi2ns-lyx-
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     
emacs   26.3    out     /gnu/store/528p0v6gg5gx53jd0x52dmghb01bfhc5-emacs-26.3
glibc-utf8-locales      2.31    out     
guile-colorized 0.1     out     

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,


reply via email to

[Prev in Thread] Current Thread [Next in Thread]