Re: Some emacs stuff to activate/deactivate guix profiles

2020-12-17 Thread pinoaffe
Jan Nieuwenhuizen writes: > My emacs-guix already has a file called guix-profiles.el; how do you > handle that oops, I think I'll rename this script then :) > or how do I best look at / try your profiles? I think the easiest way to try this is to source the guix-profiles file, set the three

Re: Some emacs stuff to activate/deactivate guix profiles

2020-12-17 Thread Jan Nieuwenhuizen
pinoaffe writes: Hello, > I've attached the reusable stuff in guix-profiles.el, and my personal > config in init-profiles.el. > Any thoughts? My emacs-guix already has a file called guix-profiles.el; how do you handle that or how do I best look at / try your profiles? This looks interesting;

Re: Some emacs stuff to activate/deactivate guix profiles

2020-12-17 Thread zimoun
Hi, On Thu, 17 Dec 2020 at 09:36, pinoaffe wrote: >> Aside, it is a bit redundant with Emacs-Guix, from my >> understanding. :-) > It might very well be, but I couldn't find a way to do what I wanted to > do with emacs-guix I guess the entrypoint is ’guix-set-emacs-environment’. But I have

Re: Some emacs stuff to activate/deactivate guix profiles

2020-12-17 Thread pinoaffe
zimoun writes: > > Instead of call shell command and then… > > …parse the output, you should give a look at how Emacs-Guix does using > the Scheme API. Or maybe use “guix repl” as Nyxt does. Thanks for the suggestion, I'll look into that > Aside, it is a bit redundant with Emacs-Guix, from my

Some emacs stuff to activate/deactivate guix profiles

2020-12-17 Thread pinoaffe
Hi guix! I wrote some elisp that * maintains a list of available guix profiles * maintains a list of active guix profiles * allows the user to modify both of those lists * provides interactive commands that allow the user to (de)activate profiles * sets env variables and the emacs search path

Re: Some emacs stuff to activate/deactivate guix profiles

2020-12-17 Thread pinoaffe
Hi everybody, sorry for the repeated messages, something went wrong with mu4e On Thu, Dec 17, 2020 at 4:59 AM pinoaffe wrote: > Hi guix! > > I wrote some elisp that > * maintains a list of available guix profiles > * maintains a list of active guix profiles > * allows the user to modify both of

Re: Some emacs stuff to activate/deactivate guix profiles

2020-12-17 Thread zimoun
Hi, On Thu, 17 Dec 2020 at 05:59, pinoaffe wrote: > I've attached the reusable stuff in guix-profiles.el, and my personal > config in init-profiles.el. Thanks for sharing. > (defun guix-profiles->environment-vars (profiles) > (shell-command-to-string >(string-join (apply #'list >

Some emacs stuff to activate/deactivate guix profiles

2020-12-16 Thread pinoaffe
Hi guix! I wrote some elisp that * maintains a list of available guix profiles * maintains a list of active guix profiles * allows the user to modify both of those lists * provides interactive commands that allow the user to (de)activate profiles * sets env variables and the emacs search path

Some emacs stuff to activate/deactivate guix profiles

2020-12-16 Thread pinoaffe
Hi guix! I wrote some elisp that * maintains a list of available guix profiles * maintains a list of active guix profiles * allows the user to modify both of those lists * provides interactive commands that allow the user to (de)activate profiles * sets env variables and the emacs search path

Some emacs stuff to activate/deactivate guix profiles

2020-12-16 Thread pinoaffe
Hi guix! I wrote some elisp that * maintains a list of available guix profiles * maintains a list of active guix profiles * allows the user to modify both of those lists * provides interactive commands that allow the user to (de)activate profiles * sets env variables and the emacs search path

Some emacs stuff to activate/deactivate guix profiles

2020-12-16 Thread pinoaffe
Hi guix! I wrote some elisp that * maintains a list of available guix profiles * maintains a list of active guix profiles * allows the user to modify both of those lists * provides interactive commands that allow the user to (de)activate profiles * sets env variables and the emacs search path