Re: Guix and Emacs Integration for Polyglot Development

2018-10-29 Thread Alex Kost
George Clemmer (2018-10-28 17:19 -0400) wrote: > Alex Kost writes: [...] >> BTW, in general, I think that hiding features is a bad thing… however, >> there is one hidden feature in Emacs-Guix (although, it is hidden just >> because it is also hidden in Guix itself ;-) ) > > Is this a riddle?

Re: Guix and Emacs Integration for Polyglot Development

2018-10-28 Thread George Clemmer
Hi Alex, Alex Kost writes: > George Clemmer (2018-10-27 15:32 -0400) wrote: > >> FWIW, here are a few comments/ideas ... >> >> It would be handy if 'quit-window' in the final buffer reached via >> *guix-popup* took me take me back 'UP' the "tree" of sub-popups that >> lead there so I could

Re: Guix and Emacs Integration for Polyglot Development

2018-10-28 Thread Alex Kost
George Clemmer (2018-10-27 15:32 -0400) wrote: > Alex Kost writes: > >> George Clemmer (2018-10-26 16:56 -0400) wrote: >> >>> I have another question. Is there a shortcut to >>> guix-installed-system-packages in the popup that I am missing? >> >> No, there is a direct shortcut. Currently there

Re: Guix and Emacs Integration for Polyglot Development

2018-10-27 Thread George Clemmer
Alex Kost writes: > George Clemmer (2018-10-26 16:56 -0400) wrote: > >> I have another question. Is there a shortcut to >> guix-installed-system-packages in the popup that I am missing? > > No, there is a direct shortcut. Currently there are 2 "long" ways > to access system packages from "M-x

Re: Guix and Emacs Integration for Polyglot Development

2018-10-27 Thread Alex Kost
George Clemmer (2018-10-26 16:56 -0400) wrote: >> Alex Kost writes: >> >>> Hint: since you are on this commit, you may check the new "M-x guix" - >>> you will be the first person who will try it (maybe you will like it >>> this time) ;-) > > I am sorry if I gave the impression that I

Re: Guix and Emacs Integration for Polyglot Development

2018-10-26 Thread George Clemmer
Hi Alex, Oops, please disregard the problem reported earlier (cc below). I had the emacs-guix package installed at the same time the load path included the source build. When I remove the package .. everything works fine. George Clemmer writes: > Alex Kost writes: > >> Hint: since you

Re: Guix and Emacs Integration for Polyglot Development

2018-10-26 Thread George Clemmer
Alex Kost writes: > George Clemmer (2018-10-26 00:59 -0400) wrote: > >> Hi Alex, > > Hello George! > >> I have been using code like ... >> >> (with-eval-after-load (quote guix-ui-profile) >> (setq guix-profiles >> (append (quote("/home/glc/gom/.guix-profile")) guix-profiles))) >> (setq

Re: Guix and Emacs Integration for Polyglot Development

2018-10-26 Thread Alex Kost
George Clemmer (2018-10-26 00:59 -0400) wrote: > Hi Alex, Hello George! > I have been using code like ... > > (with-eval-after-load (quote guix-ui-profile) > (setq guix-profiles > (append (quote("/home/glc/gom/.guix-profile")) guix-profiles))) > (setq guix-current-profile

Re: Guix and Emacs Integration for Polyglot Development

2018-10-25 Thread George Clemmer
Hi Alex, I have been using code like ... (with-eval-after-load (quote guix-ui-profile) (setq guix-profiles (append (quote("/home/glc/gom/.guix-profile")) guix-profiles))) (setq guix-current-profile "/home/glc/gom/.guix-profile") ... to add a "project" profile to *Guix Profile* and

Re: Guix and Emacs Integration for Polyglot Development

2018-10-25 Thread Maxim Cournoyer
Hello! Jan Nieuwenhuizen writes: > Ludovic Courtès writes: > >> In all modesty ;-) I think the API is rather good: >> >> scheme@(guile-user)> ,use(guix profiles) >> scheme@(guile-user)> (profile-search-paths "/home/ludo/.guix-profile") >> $11 = ((#< variable: "PATH" files: ("bin" >> "sbin")

Re: Guix and Emacs Integration for Polyglot Development

2018-09-15 Thread Alex Kost
Jan Nieuwenhuizen (2018-09-15 07:21 +0200) wrote: > Alex Kost writes: > >> Jan Nieuwenhuizen (2018-09-13 22:45 +0200) wrote: >> >>> (defun guix-switch-profile ( profile) > >> Thank you! I'm going to apply it. I have extracted the guile code and >> put it to the "scheme side" of Emacs-Guix, also

Re: Guix and Emacs Integration for Polyglot Development

2018-09-14 Thread Jan Nieuwenhuizen
Alex Kost writes: > Jan Nieuwenhuizen (2018-09-13 22:45 +0200) wrote: > >> (defun guix-switch-profile ( profile) > Thank you! I'm going to apply it. I have extracted the guile code and > put it to the "scheme side" of Emacs-Guix, also I have rewritten this > command a bit. The only thing: I

Re: Guix and Emacs Integration for Polyglot Development

2018-09-14 Thread Alex Kost
Jan Nieuwenhuizen (2018-09-13 22:45 +0200) wrote: > (defun guix-switch-profile ( profile) > "Switch Emacs' environment to PROFILE. PROFILE can be a named > profile (like ~/.guix-profile, ~/.config/guix/work) or an > environment (like: echo $GUIX_ENVIRONMENT)." > > (interactive "fprofile: ")

Re: Guix and Emacs Integration for Polyglot Development

2018-09-14 Thread Jan Nieuwenhuizen
Ludovic Courtès writes: >> (defun guix-switch-profile ( profile) >> "Switch Emacs' environment to PROFILE. PROFILE can be a named >> profile (like ~/.guix-profile, ~/.config/guix/work) or an >> environment (like: echo $GUIX_ENVIRONMENT)." snip >> and where to put this? > > That LGTM! Perhaps

Re: Guix and Emacs Integration for Polyglot Development

2018-09-13 Thread Jan Nieuwenhuizen
Ludovic Courtès writes: > In all modesty ;-) I think the API is rather good: > > scheme@(guile-user)> ,use(guix profiles) > scheme@(guile-user)> (profile-search-paths "/home/ludo/.guix-profile") > $11 = ((#< variable: "PATH" files: ("bin" "sbin") > separator: ":" file-type: directory

Re: Guix and Emacs Integration for Polyglot Development

2018-09-10 Thread George Clemmer
Kenny Ballou writes: > I would like to be able to specify a project's dependencies in a > manifest file, add any environment variables as necessary, and have > Emacs be aware of those variables when entering that environment. Hi Kenny, I have experimented with various schemes for managing

Re: Guix and Emacs Integration for Polyglot Development

2018-09-10 Thread Kenny Ballou
On 2018-08-31 12:49 GMT, Maxim Cournoyer wrote: > Hello! > > I'm reposting Janneke's recent answer here so that it can have all its > context and participants. > > Jan Nieuwenhuizen writes: > >> Hi! >> >> Just subscribed to help-guix because of a request on IRC, so hoping that >> OP is

Re: Guix and Emacs Integration for Polyglot Development

2018-09-01 Thread Ludovic Courtès
Hi! Jan Nieuwenhuizen skribis: > I have an ugly hack to switch emacs to a profile or environment. It > parses the /etc/profile script...using MANIFEST or > `--search-paths' would be much nicer... > > Anyway, I'm using some named profiles, eg > > ~/.config/guix/mes > > and when starting

Re: Guix and Emacs Integration for Polyglot Development

2018-08-31 Thread Maxim Cournoyer
Hello! I'm reposting Janneke's recent answer here so that it can have all its context and participants. Jan Nieuwenhuizen writes: > Hi! > > Just subscribed to help-guix because of a request on IRC, so hoping that > OP is subscribed here, or someone can notify them. > > I have an ugly hack to

Re: Guix and Emacs Integration for Polyglot Development

2018-08-29 Thread Jan Nieuwenhuizen
Hi! Just subscribed to help-guix because of a request on IRC, so hoping that OP is subscribed here, or someone can notify them. I have an ugly hack to switch emacs to a profile or environment. It parses the /etc/profile script...using MANIFEST or `--search-paths' would be much nicer... Anyway,

Re: Guix and Emacs Integration for Polyglot Development

2018-08-25 Thread Ludovic Courtès
Hello Alex, Alex Kost skribis: > Ludovic Courtès (2018-08-24 23:55 +0200) wrote: > > [...] >> It would be nice if we could somehow attach an environment to a buffer, >> and for instance have M-x compile operate under that environment. >> >> Another interesting thing would be the ability to have

Re: Guix and Emacs Integration for Polyglot Development

2018-08-25 Thread Alex Kost
Ludovic Courtès (2018-08-24 23:55 +0200) wrote: [...] > It would be nice if we could somehow attach an environment to a buffer, > and for instance have M-x compile operate under that environment. > > Another interesting thing would be the ability to have Babel snippet > specify their complete

Re: Guix and Emacs Integration for Polyglot Development

2018-08-24 Thread Ludovic Courtès
Hello! Maxim Cournoyer skribis: > I think it's a valid question here, and I'd like to find a great > solution too! So far when using guix environments, I resorted to: > > 1. Spawning the environment in the command line > 2. Starting a new Emacs instance (not attached to my Emacs server) from >

Re: Guix and Emacs Integration for Polyglot Development

2018-08-20 Thread Maxim Cournoyer
Hi Kenny! Kenny Ballou writes: > On 2018年08月02日 08:08 GMT, Chris Marusich wrote: >> Kenny Ballou writes: >> >>> I would like to be able to specify a project's dependencies in a >>> manifest file, add any environment variables as necessary, and have >>> Emacs be aware of those variables when

Re: Guix and Emacs Integration for Polyglot Development

2018-08-05 Thread Kenny Ballou
On 2018年08月02日 08:08 GMT, Chris Marusich wrote: > Kenny Ballou writes: > >> I would like to be able to specify a project's dependencies in a >> manifest file, add any environment variables as necessary, and have >> Emacs be aware of those variables when entering that environment. > > It may not

Re: Guix and Emacs Integration for Polyglot Development

2018-08-02 Thread Chris Marusich
Kenny Ballou writes: > I would like to be able to specify a project's dependencies in a > manifest file, add any environment variables as necessary, and have > Emacs be aware of those variables when entering that environment. It may not be what you're looking for, but projects like Haunt [1]

Guix and Emacs Integration for Polyglot Development

2018-07-27 Thread Kenny Ballou
This may be the wrong list, but I figure most Guix users/developers are _probably_ also Emacs users, I figured I would ask here first... Obviously, there is the [[alezost/guix.el][guix.el]] for interacting with Guix from within Emacs. However, what sort of integration is available for Emacs