From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bojohan+news@dd.chalmers.se (Johan =?utf-8?Q?Bockg=C3=A5rd?=) Newsgroups: gmane.emacs.help Subject: Re: multiple load-paths? Date: Sat, 24 Nov 2007 17:05:15 +0100 Organization: Chalmers University of Technology, Sweden Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1195922444 8914 80.91.229.12 (24 Nov 2007 16:40:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 24 Nov 2007 16:40:44 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Nov 24 17:40:52 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Ivy3m-0007bY-4V for geh-help-gnu-emacs@m.gmane.org; Sat, 24 Nov 2007 17:40:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ivy3X-0002DD-Dn for geh-help-gnu-emacs@m.gmane.org; Sat, 24 Nov 2007 11:40:35 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed1.swip.net!swipnet!newsfeed1.funet.fi!newsfeeds.funet.fi!newsfeed1.telenor.se!newsfeed.sunet.se!news01.sunet.se!129.16.222.141.MISMATCH!gide.ita.chalmers.se!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 25 Original-NNTP-Posting-Host: remote1.student.chalmers.se Original-X-Trace: gide.ita.chalmers.se 1195920315 9613 129.16.29.79 (24 Nov 2007 16:05:15 GMT) Original-X-Complaints-To: usenet@gide.ita.chalmers.se Original-NNTP-Posting-Date: Sat, 24 Nov 2007 16:05:15 +0000 (UTC) Mail-Copies-To: never User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux) Cancel-Lock: sha1:7t9gzlY7kIplAMxU29PpHkA8XdE= Original-Xref: shelby.stanford.edu gnu.emacs.help:154041 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:49473 Archived-At: someusernamehere writes: > (setq load-path (cons (expand-file-name "~/lisp") load-path)) > (setq load-path (cons (expand-file-name "~/repos") load-path)) > (setq load-path (cons (expand-file-name "~/testing") load-path)) > (setq load-path (cons (expand-file-name "~/elisp") load-path)) > > there is a way to do this more "posh" ?, I mean may be in one line o > something similar? I'd prefer (add-to-list 'load-path "~/lisp") (add-to-list 'load-path "~/repos") (add-to-list 'load-path "~/testing") (add-to-list 'load-path "~/elisp") (add-to-list is shorter and avoids adding duplicates to load-path if .emacs is reloaded. expand-file-name shouldn't be necessary) You could use a loop, but having one line per entry is more grep-friendly. -- Johan Bockgård