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

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

Re: add recursively to load-path


From: Glenn Morris
Subject: Re: add recursively to load-path
Date: Fri, 25 Apr 2003 15:49:21 +0100
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/directory/emacs.html)

pclouds wrote:

> Can i add a directory and all the subdirectories of that one to
> load-path?

(let* ((dir (expand-file-name "~/emacs"))
       (default-directory dir))
  (when (file-directory-p dir)
    (add-to-list 'load-path dir)
    (if (fboundp 'normal-top-level-add-subdirs-to-load-path)
        (normal-top-level-add-subdirs-to-load-path))))


reply via email to

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