From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: Emacs load path Date: Fri, 01 Jan 2016 19:28:56 +0300 Message-ID: <87oad51cxj.fsf@gmail.com> References: <87io3frjcd.fsf@gnu.org> <87ziwpjpd9.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]:47926) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aF2ZU-0007En-6F for guix-devel@gnu.org; Fri, 01 Jan 2016 11:28:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aF2ZT-0000G8-AS for guix-devel@gnu.org; Fri, 01 Jan 2016 11:28:56 -0500 In-Reply-To: <87ziwpjpd9.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Fri, 01 Jan 2016 16:22:58 +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 , KAction@gnu.org, Federico Beffa Ludovic Court=C3=A8s (2016-01-01 18:22 +0300) wrote: >> then we should definitely add code in a similar way to instruct emacs >> to look in the right places (".../guix.d") for our emacs packages out >> of the box. As Dmitry rightfully points out, having emacs packages >> which do not work out of the box is just a bug. > > Yeah. Alex, any idea how to add the guix.d subdirectories to the search > path without duplicating all of guix.el in the =E2=80=98emacs=E2=80=99 pa= ckage? Yeah, no need to duplicate all of the guix elisp files. Only "guix-emacs.el" (and its dependencies: "guix-profiles.el" and "guix-config.el") is needed. And instead of (require 'guix-init) the following code should be used to "activate" our .guix.d directories: (when (require 'guix-emacs nil t) (guix-emacs-load-autoloads)) --=20 Alex