From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: Emacs load path Date: Thu, 31 Dec 2015 23:45:49 +0300 Message-ID: <87d1tm2vpe.fsf@gmail.com> 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]:46725) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aEk6c-0000sB-JY for guix-devel@gnu.org; Thu, 31 Dec 2015 15:45:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aEk6b-0004s4-Ta for guix-devel@gnu.org; Thu, 31 Dec 2015 15:45:54 -0500 In-Reply-To: (Federico Beffa's message of "Thu, 31 Dec 2015 10:27:34 +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 12:27 +0300) wrote: > 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-start= up=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. Sorry, I think I lost the thread of what we are talking about. Is it a suggestion for "/etc/emacs/site-start.el" that is generated in GuixSD? --=20 Alex