From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: Emacs load path Date: Wed, 30 Dec 2015 21:55:52 +0300 Message-ID: <87r3i3lq9z.fsf@gmail.com> References: <87h9j2jk2t.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]:53003) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aELuf-0002vI-DG for guix-devel@gnu.org; Wed, 30 Dec 2015 13:55:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aELuc-0005JW-7U for guix-devel@gnu.org; Wed, 30 Dec 2015 13:55:57 -0500 In-Reply-To: (Federico Beffa's message of "Wed, 30 Dec 2015 13:16:13 +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-30 15:16 +0300) wrote: > On Mon, Dec 28, 2015 at 11:15 PM, Alex Kost wrote: >> Federico Beffa (2015-12-28 01:16 +0300) wrote: >> >> [...] >>> 1. (setq load-path (append '("/usr/local/share/emacs/site-lisp/") load-= path)) >> >> This is very unusual. Why 'append' instead of 'cons'? Anyway an >> idiomatic way is: (add-to-list 'load-path "dir") > > Alex, this isn't useful. Obviously it's coming from my .emacs file > where I add more than one directory... But this is looking at trees > for the forest... Thanks for clarifying. I said it's unusual, because in this example you added just a *single* directory. After sending the message I guessed that you probably uses it for adding several elements to the list (I do absolutely the same for `auto-mode-alist' variable). > A useful approach would be to fix the problem such that if a user > installs emacs with guix the above steps happen automatically without > any user intervention. Yeah, it would probably be a good default, but only if this default can be changed. I mean if I didn't install emacs packages with guix, I would like to avoid loading an additional code for that. In GuixSD I can do it with "export EMACSLOADPATH=3D", so if our Emacs package will somehow "automagically" look at "~/.guix-profile/share/emacs/site-lisp/guix.d/=E2= =80=A6" directories, I want to have a way to disable this feature. --=20 Alex