From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: Emacs load path Date: Thu, 31 Dec 2015 12:02:09 +0300 Message-ID: <87io3ff0tq.fsf@gmail.com> References: <87h9j2jk2t.fsf@gmail.com> <87r3i3lq9z.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53303) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aEZ7g-0001Jy-JB for guix-devel@gnu.org; Thu, 31 Dec 2015 04:02:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aEZ7f-0004ub-Lh for guix-devel@gnu.org; Thu, 31 Dec 2015 04:02:16 -0500 In-Reply-To: (Federico Beffa's message of "Wed, 30 Dec 2015 23:18:30 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Federico Beffa Cc: Guix-devel , KAction@gnu.org Federico Beffa (2015-12-31 01:18 +0300) wrote: > On Wed, Dec 30, 2015 at 7:55 PM, Alex Kost wrote: >>> A useful approach would be to fix the problem such that if a user >>> installs emacs with guix the above steps happen automatically without >>> any user intervention. >> >> Yeah, it would probably be a good default, but only if this default can >> be changed. I mean if I didn't install emacs packages with guix, I would >> like to avoid loading an additional code for that. In GuixSD I can do >> it with "export EMACSLOADPATH=3D", so if our Emacs package will somehow >> "automagically" look at "~/.guix-profile/share/emacs/site-lisp/guix.d/= =E2=80=A6" >> directories, I want to have a way to disable this feature. > > I would mimic the emacs package system: The packages are loaded after > loading the init file. To disable automatic package loading, you can > change the variable =E2=80=98package-enable-at-startup=E2=80=99 to =E2=80= =98nil=E2=80=99. This is already mimic-ed: there is =E2=80=98guix-package-enable-at-startup= =E2=80=99 variable for the same purpose. But on GuixSD, (require 'guix-init) is performed before user config is loaded, so as I said, you need to use "export EMACSLOADPATH=3D" to prevent this additional stuff from loading. BTW I heard (but didn't check) that in emacs 25.1, packages (installed using emacs package system (package.el)) will be enabled before loading the init file, so you can't avoid it if you wish. If it is so (I should better check before blaming), then it is an anti-feature for me. --=20 Alex