unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* add recursively to load-path
@ 2003-04-25 14:24 pclouds
  0 siblings, 0 replies; 2+ messages in thread
From: pclouds @ 2003-04-25 14:24 UTC (permalink / raw)


Hi,
Can i add a directory and all the subdirectories of that one to
load-path? Something like that:
,----
| (add-recursive-path 'load-path "~/emacs")
`----
then ~/emacs ~/emacs/semantic ~/emacs/mmm-mode ... will be added to
load-path.
Thanks
-- 
Bi Cờ Lao

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: add recursively to load-path
       [not found] <mailman.5193.1051281179.21513.help-gnu-emacs@gnu.org>
@ 2003-04-25 14:49 ` Glenn Morris
  0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2003-04-25 14:49 UTC (permalink / raw)


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))))

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-04-25 14:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-25 14:24 add recursively to load-path pclouds
     [not found] <mailman.5193.1051281179.21513.help-gnu-emacs@gnu.org>
2003-04-25 14:49 ` Glenn Morris

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).