[Top][All Lists]

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

Re: Using emacs library with guix environment

From: Kyle Meyer
Subject: Re: Using emacs library with guix environment
Date: Wed, 06 Oct 2021 20:18:24 -0400

jgart writes:

> I'm only able to properly source the library into the environment if I run 
> the following:
> `guix environment emacs-commander --ad-hoc emacs-commander`
> Why do I have to provide emacs-commander twice to the environment command?

I believe the key package that the first emacs-commander (the one before
--ad-hoc) brings in is emacs along with its corresponding EMACSLOADPATH.

Notice that

  $ guix environment --pure --ad-hoc bash emacs-commander -- sh -c 'echo 

outputs nothing.  Now if emacs is added as an ad-hoc package:

  $ guix environment --pure --ad-hoc bash emacs-commander emacs -- sh -c 'echo 

Or another test, dropping --pure to be closer to your initial snippet:

  $ guix environment --ad-hoc emacs-commander -- \
    emacs -Q --batch --eval '(print (locate-library "commander"))'

  # add emacs as ad-hoc package
  $ guix environment --ad-hoc emacs-commander emacs -- \
    emacs -Q --batch --eval '(print (locate-library "commander"))'

reply via email to

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