From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: [PATCH] doc: Fix 'geiser-guile-load-path' example. Date: Tue, 17 Nov 2015 11:04:13 +0300 Message-ID: <87egfp1282.fsf@gmail.com> References: <87k2pkl8a6.fsf@gmail.com> <87y4dztb1g.fsf@gnu.org> 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]:43676) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZybFU-00014V-BP for guix-devel@gnu.org; Tue, 17 Nov 2015 03:04:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZybFR-0003Wq-54 for guix-devel@gnu.org; Tue, 17 Nov 2015 03:04:20 -0500 In-Reply-To: <87y4dztb1g.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Sun, 15 Nov 2015 18:41:47 +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: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org Ludovic Court=C3=A8s (2015-11-15 20:41 +0300) wrote: > Alex Kost skribis: > >> (add-to-list 'geiser-guile-load-path 'foo) errors if "geiser-guile.el" >> is not loaded yet, so I think it's better to put it inside >> 'with-eval-after-load', WDYT? > > Sounds good. I guess that=E2=80=99s because (require 'guix-init) doesn= =E2=80=99t > require 'geiser? "guix-init.el" shouldn't require geiser. IMO it should load as less code as possible, because it will increase the Emacs start time. In general I think requiring/loading packages is evil (as it slows down starting Emacs), so I avoid 'require'-s when possible in my init file. --=20 Alex