From mboxrd@z Thu Jan 1 00:00:00 1970 From: taylanbayirli@gmail.com (Taylan Ulrich =?utf-8?Q?Bay=C4=B1rl=C4=B1?= =?utf-8?Q?=2FKammer?=) Subject: Re: Emacs load path Date: Tue, 29 Dec 2015 02:30:52 +0200 Message-ID: <87lh8et7sz.fsf@T420.taylan> References: <87h9j2jk2t.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53293) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aDiBn-00073z-OD for guix-devel@gnu.org; Mon, 28 Dec 2015 19:31:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aDiBn-0003AW-1I for guix-devel@gnu.org; Mon, 28 Dec 2015 19:30:59 -0500 In-Reply-To: <87h9j2jk2t.fsf@gmail.com> (Alex Kost's message of "Tue, 29 Dec 2015 01:15:54 +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: Alex Kost Cc: Guix-devel , KAction@gnu.org, Federico Beffa Alex Kost writes: > 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") If it's important to add the new element to the end of the list, then one can also tell that to 'add-to-list' via an optional Boolean argument, like: (add-to-list 'load-path "dir" t) Taylan