From mboxrd@z Thu Jan 1 00:00:00 1970 From: George Clemmer Subject: Re: Guix and Emacs Integration for Polyglot Development Date: Fri, 26 Oct 2018 14:01:15 -0400 Message-ID: References: <87wos9rp5y.fsf@gnu.org> <87wos5cma6.fsf@gnu.org> <87tvn9s14w.fsf@gnu.org> <87k1o5b05d.fsf@gnu.org> <875zz9gm8w.fsf@gnu.org> <875zz7epb6.fsf@gmail.com> <87ftwsprke.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39286) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gG6QM-00074M-DJ for help-guix@gnu.org; Fri, 26 Oct 2018 14:01:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gG6QE-00052A-Eh for help-guix@gnu.org; Fri, 26 Oct 2018 14:01:26 -0400 Received: from mail-yw1-xc2d.google.com ([2607:f8b0:4864:20::c2d]:44192) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gG6QC-00051F-Ek for help-guix@gnu.org; Fri, 26 Oct 2018 14:01:22 -0400 Received: by mail-yw1-xc2d.google.com with SMTP id t78-v6so793750ywg.11 for ; Fri, 26 Oct 2018 11:01:19 -0700 (PDT) In-reply-to: <87ftwsprke.fsf@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Alex Kost Cc: help-guix@gnu.org 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 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