help-guix
[Top][All Lists]
Advanced

[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 
$EMACSLOADPATH'

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

  $ guix environment --pure --ad-hoc bash emacs-commander emacs -- sh -c 'echo 
$EMACSLOADPATH'
  /gnu/store/qg6rsw6w587aykln2dzssr43nl6jq1a1-profile/share/emacs/site-lisp

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"))'
  nil

  # add emacs as ad-hoc package
  $ guix environment --ad-hoc emacs-commander emacs -- \
    emacs -Q --batch --eval '(print (locate-library "commander"))'
  
"/gnu/store/kr9cnw5c9nydiilb25w3q5bnp5c1zvca-emacs-commander-0.7.0/share/emacs/site-lisp/commander-0.7.0/commander.elc"



reply via email to

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