From: George Clemmer <myglc2@gmail.com>
To: Alex Kost <alezost@gmail.com>
Cc: help-guix@gnu.org
Subject: Re: Guix and Emacs Integration for Polyglot Development
Date: Fri, 26 Oct 2018 14:01:15 -0400 [thread overview]
Message-ID: <cucva5oh9jo.fsf@gmail.com> (raw)
In-Reply-To: <87ftwsprke.fsf@gmail.com>
Alex Kost <alezost@gmail.com> 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 guix-current-profile "/home/glc/gom/.guix-profile")
>>
>> ... to add a "project" profile to *Guix Profile* and make it
>> current. This has my desired effect: "making" emacs-guix package-related
>> commands operate on a "project" profile instead of the "default user
>> profile". Using your commit ...
>>
>> 4ce2b6a * master origin/master Add new 'guix' command and rename the old
>> one to 'guix-command'
>
> 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) ;-)
Yes, I saw that you moved the old guix to guix-command which sounds
great and works here. Sadly, 'M-x guix' gives me a backtrace ...
Debugger entered--Lisp error: (error "Autoloading file /home/glc/gom/.gpm/gfg/emacs-guix/emacs-guix/elisp/guix-command.elc failed to define function guix")
autoload-do-load((autoload "guix-command" "Popup window for 'guix'." t nil) guix)
command-execute(guix record)
execute-extended-command(nil "guix" "guix")
funcall-interactively(execute-extended-command nil "guix" "guix")
call-interactively(execute-extended-command nil nil)
command-execute(execute-extended-command)
... with this emacs-guix config ...
;;; >>> /home/glc/gom//home/glc/gom/.gpm/gfg/emacs-guix/init.el
;; run emacs-guix from git checkout
(add-to-list 'load-path (substitute-in-file-name "$GPM_ROOT/.gpm/gfg/emacs-guix/emacs-guix/elisp"))
(require 'guix-autoloads nil t)
;; use guix from the Git working tree
(setq guix-load-path (substitute-in-file-name "$GPM_ROOT/.gpm/gfg/guix/guix"))
;; enable development mode 'C-c . _' functions in .scm buffers
(add-hook 'scheme-mode-hook 'guix-devel-mode)
;; don't use results, if any, of a guix pull
(setq guix-repl-use-latest nil)
;;; >>> /home/glc/gom//home/glc/gom/.gpm/gfg/geiser/init.el
;; run bleading-edge geiser
(load (substitute-in-file-name "$GPM_ROOT/.gpm/gfg/geiser/geiser/elisp/geiser-load") t)
;; enable development mode 'C-c . _' functions in .scm buffers
(add-hook 'scheme-mode-hook 'guix-devel-mode)
>> ... I tried "guix-set-emacs-environment" expecting it to be another way
>> to do the same thing. I was surprised when it didn't add the "new"
>> profile to *Guix Profiles*. Shouldn't it do this, or am I missing
>> something? In fact, it doesn't seem to be doing anything :-(
>
> "M-x guix-set-emacs-environment" sets environment variables for Emacs
> itself! For example, you may check "M-x getenv PATH" or other
> variables. They should be augmented for the profile you selected.
Oh, DUH! Thanks!
- George
next prev parent reply other threads:[~2018-10-26 18:01 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-29 18:41 Guix and Emacs Integration for Polyglot Development Jan Nieuwenhuizen
2018-09-01 14:41 ` Ludovic Courtès
2018-09-01 15:11 ` Jan Nieuwenhuizen
2018-09-01 17:25 ` Ludovic Courtès
2018-09-13 20:45 ` Jan Nieuwenhuizen
2018-09-14 9:56 ` Ludovic Courtès
2018-09-14 11:53 ` Jan Nieuwenhuizen
2018-09-14 21:34 ` Alex Kost
2018-09-15 5:21 ` Jan Nieuwenhuizen
2018-09-15 19:40 ` Alex Kost
2018-10-26 4:59 ` George Clemmer
2018-10-26 17:04 ` Alex Kost
2018-10-26 18:01 ` George Clemmer [this message]
2018-10-26 20:56 ` George Clemmer
2018-10-27 14:42 ` Alex Kost
2018-10-27 19:32 ` George Clemmer
2018-10-28 14:39 ` Alex Kost
2018-10-28 21:19 ` George Clemmer
2018-10-29 16:37 ` Alex Kost
2018-10-26 1:22 ` Maxim Cournoyer
-- strict thread matches above, loose matches on Subject: below --
2018-07-27 18:53 Kenny Ballou
2018-08-02 8:08 ` Chris Marusich
2018-08-05 19:16 ` Kenny Ballou
2018-08-20 12:32 ` Maxim Cournoyer
2018-08-24 21:55 ` Ludovic Courtès
2018-08-25 19:47 ` Alex Kost
2018-08-25 21:59 ` Ludovic Courtès
2018-08-31 12:49 ` Maxim Cournoyer
2018-09-10 15:25 ` Kenny Ballou
2018-09-11 1:10 ` George Clemmer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cucva5oh9jo.fsf@gmail.com \
--to=myglc2@gmail.com \
--cc=alezost@gmail.com \
--cc=help-guix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.