help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: multiple load-paths?


From: Juanma Barranquero
Subject: Re: multiple load-paths?
Date: Sat, 24 Nov 2007 16:57:40 +0100

On Nov 24, 2007 4:30 PM, someusernamehere <someusernamehere@gmail.com> wrote:

> (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?

You could do

  (dolist (dir '("lisp" "repos" "testing" "elisp"))
    (push (expand-file-name (concat "~/" dir)) load-path))

About the "poshiness" of it, that's you call :-)

             Juanma




reply via email to

[Prev in Thread] Current Thread [Next in Thread]