[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs in multiple profiles
From: |
Pierre Neidhardt |
Subject: |
Re: Emacs in multiple profiles |
Date: |
Mon, 28 Oct 2019 08:49:26 +0100 |
Maxim Cournoyer <address@hidden> writes:
> I'm not sure I understand correctly, but perhaps you'd want to use
> --pure, so to make sure nothing from your current environment
> interferes?
>
> But that's still leave site-start.el to look into ~/.guix-profile, I
> believe. You could also try with emacs-minimal, which doesn't have any
> of the emacs-guix additions.
site-start.el loads guix-emacs.el, which in turn runs this piece of
code:
--8<---------------cut here---------------start------------->8---
(defun guix-emacs-autoload-packages (&rest profiles)
"Autoload Emacs packages installed in PROFILES.
If PROFILES are not specified, use a default user and system
profiles.
'Autoload' means add directories with Emacs packages to
`load-path' and load 'autoloads' files matching
`guix-emacs-autoloads-regexp'."
(interactive (list (if (fboundp 'guix-read-package-profile)
(funcall 'guix-read-package-profile)
guix-user-profile)))
(let* ((env (getenv "GUIX_ENVIRONMENT"))
(profiles (or profiles
(append (list "/run/current-system/profile"
guix-user-profile)
(and env (list env))))))
(dolist (profile profiles)
...)))
--8<---------------cut here---------------end--------------->8---
As you can see, the GUIX_ENVIRONMENT is scanned for Emacs packages. So
my test is moot.
Now I'm realizing I could have tested a smarted way:
- Make sure ~/.guix-profile does not have the packages being tested
(e.g. expand-region here).
- Install patched Emacs + tested package to a new profile FOO.
- Source `FOO/etc/profile`.
- Run `FOO/bin/emacs` and see if the package is found.
Anyways, waiting for your next patch! :)
--
Pierre Neidhardt
https://ambrevar.xyz/
signature.asc
Description: PGP signature
- Re: Emacs in multiple profiles, (continued)
- Re: Emacs in multiple profiles, Maxim Cournoyer, 2019/10/19
- Re: Emacs in multiple profiles, Pierre Neidhardt, 2019/10/19
- Re: Emacs in multiple profiles, Maxim Cournoyer, 2019/10/28
- Re: Emacs in multiple profiles, Maxim Cournoyer, 2019/10/28
- Re: Emacs in multiple profiles, Pierre Neidhardt, 2019/10/29
- Re: Emacs in multiple profiles, Maxim Cournoyer, 2019/10/31
- Re: Emacs in multiple profiles, Pierre Neidhardt, 2019/10/31
Re: Emacs in multiple profiles, Alex Kost, 2019/10/20