From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: Emacs load path Date: Mon, 28 Dec 2015 00:42:46 +0300 Message-ID: <87mvsvva95.fsf@gmail.com> References: <87fuyo2d87.fsf@gmail.com> <20151227164730.GB15526@sagulo> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43126) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aDJ5Y-00073y-0i for guix-devel@gnu.org; Sun, 27 Dec 2015 16:42:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aDJ5U-0000EB-RN for guix-devel@gnu.org; Sun, 27 Dec 2015 16:42:51 -0500 In-Reply-To: <20151227164730.GB15526@sagulo> (Dmitry Bogatov's message of "Sun, 27 Dec 2015 19:47:30 +0300") 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: Dmitry Bogatov Cc: guix-devel@gnu.org Dmitry Bogatov (2015-12-27 19:47 +0300) wrote: > * Alex Kost [2015-12-27 17:11:20+0300] >> Dmitry Bogatov (2015-12-27 02:02 +0300) wrote: >> >> > * By default, ~/.guix-profile/share/emacs/site-lisp/guix.d is not in >> > load-path. `emacs-no-x` exports no variables. So, if I install >> > some emacs library, like `emacs-f`, evaluating (require 'f) in emacs >> > fails. It is... unexpected. Is it intended behaviour? >> >> Yes, Federico Beffa (the author of emacs-build-system) explained it here: >> >> >> You either have to add guix.d directory manually or you can configure >> emacs interface that comes with Guix, which means (require 'guix-init) >> more or less. See (info "(guix) Emacs Initial Setup") for details. > > Read this email. It explain existance of guix.d subdirectory, but why > can't we force emacs to execute following pseudo-code at start: > > (for dir in "${HOME}.guix-profile/share/emacs/site-lisp/guix.d" > (push dir load-path)) This is more or less what (require 'guix-init) does (among other things). And it works out of the box on GuixSD. -- Alex