From mboxrd@z Thu Jan 1 00:00:00 1970 From: myglc2@gmail.com Subject: Re: Emacs in multiple profiles Date: Wed, 18 Apr 2018 15:49:56 -0400 Message-ID: <877ep4z44b.fsf@gmail.com> References: <9c395fd0-9458-7894-af8b-9294d212c60b@fastmail.net> <878tajzu03.fsf@gmail.com> <87a7uyd7qy.fsf@gmail.com> <874ll51mq3.fsf@gmail.com> <87zi2t4jgh.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59377) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f8t5g-0000eu-Cw for help-guix@gnu.org; Wed, 18 Apr 2018 15:50:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f8t5c-0001Tf-Do for help-guix@gnu.org; Wed, 18 Apr 2018 15:50:04 -0400 Received: from mail-qt0-x230.google.com ([2607:f8b0:400d:c0d::230]:44261) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f8t5c-0001TV-6Z for help-guix@gnu.org; Wed, 18 Apr 2018 15:50:00 -0400 Received: by mail-qt0-x230.google.com with SMTP id j26-v6so3077302qtl.11 for ; Wed, 18 Apr 2018 12:49:59 -0700 (PDT) In-Reply-To: <87zi2t4jgh.fsf@gmail.com> (Alex Kost's message of "Tue, 27 Mar 2018 18:38:38 +0300") 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 --=-=-= Content-Type: text/plain On 03/27/2018 at 18:38 Alex Kost writes: > Konrad Hinsen (2018-03-26 10:24 +0200) wrote: > >> Alex Kost writes: >> >>> But what your "current profile" is? How can emacs know about it? It >>> "knows" only about the default (system and user) profiles. So if you >> >> I'd say Emacs knows nothing at all about profiles. It's Guix that >> manages profiles for everyone else, be it bash, Python, or Emacs. To get >> the behavior that I expected, Guix would have to define and manage an >> environment variable, let's call it EMACS_PATH, which would be used in >> site-start.el. >> >> What I cannot judge is how much effort it would be to implement such a >> feature, and if it could have undesirable side-effects. > > As for me, I think the current behaviour (looking for packages only in > the user and the system profiles) is the right one. If you want to > auto-load emacs packages from some non-standard profiles, you can easily > do this on your own (as I showed in the previous message). > > Anyway, if you think that some feature is missing, I would recommend to > send a message to about it. Perhaps other people > will agree with your point. Hi Konrad & Alex, I am revamping my emacs config approach and I came across your discussion. Following Alex's suggestions I found 2 approaches that seem to do what Konrad wanted ... 1) guix profile approach ... guix package -m emacs.scm emacs --no-init-file \ --eval="\ (let ((guix-env (getenv \"GUIX_ENVIRONMENT\"))) (when (and guix-env (require 'guix-emacs nil t)) (guix-emacs-autoload-packages guix-env)))" \ --load=".emacs.d/init0.el" guix package --roll-back 2) guix environment approach ... guix environment --ad-hoc emacs magit -- \ emacs --no-init-file --no-site-file \ --eval="\ (let ((guix-env (getenv \"GUIX_ENVIRONMENT\"))) (when (and guix-env (require 'guix-emacs nil t)) (guix-emacs-autoload-packages guix-env)))" \ --load=".emacs.d/init0.el" For my purposes 2) is better -- It starts more quickly and doesn't "infect" other login sessions. It also allows multiple, different, isolated Emacs environments to run simultaneously. Sweet ;-) - George --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=emacs.scm Content-Transfer-Encoding: base64 KHVzZS1tb2R1bGVzIChnbnUgcGFja2FnZXMpKQooZGVmaW5lIHVzci1wYWNrYWdlcwogICAnKAog ICAgICJmb250LWRlamF2dSIKICAgICAiZW1hY3MiCiAgICAgIm1hZ2l0IgogICApKQooc3BlY2lm aWNhdGlvbnMtPm1hbmlmZXN0IHVzci1wYWNrYWdlcykK --=-=-= Content-Type: application/emacs-lisp Content-Disposition: attachment; filename=init0.el Content-Transfer-Encoding: quoted-printable (setq default-frame-alist '((font . "-PfEd-DejaVu Sans Mono-bold-normal-normal-*-16-*-*-*-m-0-i= so10646-1")) ) --=-=-=--