From mboxrd@z Thu Jan 1 00:00:00 1970 From: Federico Beffa Subject: Re: Emacs load path Date: Thu, 31 Dec 2015 10:27:34 +0100 Message-ID: References: <87h9j2jk2t.fsf@gmail.com> <87r3i3lq9z.fsf@gmail.com> <87io3ff0tq.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]:57941) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aEZWB-0003sf-Uf for guix-devel@gnu.org; Thu, 31 Dec 2015 04:27:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aEZWB-0002JB-3P for guix-devel@gnu.org; Thu, 31 Dec 2015 04:27:35 -0500 In-Reply-To: <87io3ff0tq.fsf@gmail.com> 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: Alex Kost Cc: Guix-devel , KAction@gnu.org On Thu, Dec 31, 2015 at 10:02 AM, Alex Kost wrote: >> 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-startu= p=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. Instead of a (require 'guix-init) before loading the init file you could just load a tiny amount of code whose purpose is only to decide if 'guix-init' should be loaded after processing the init file. Fede