all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Richard Riley <rileyrgdev@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: add directories to load-path
Date: Mon, 12 Oct 2009 13:40:17 +0200	[thread overview]
Message-ID: <hav4j4$s5e$1@news.eternal-september.org> (raw)
In-Reply-To: hau7gl$lui$2@reader1.panix.com

dkcombs@panix.com (David Combs) writes:

> In article <mailman.6708.1253017158.2239.help-gnu-emacs@gnu.org>,
> Maurizio Vitale  <maurizio.vitale@polymath-solutions.com> wrote:
>>>>>>> "henry" == henry atting <nsmp_01@online.de> writes:
>>
>>    henry> How can I add directories to the load-path *including* all
>>    henry> subdirectories?
>>
>>    henry> At present I do it this way
>>
>>    henry> (setq load-path (append '( "/some/directory"
>>    henry> "/some/directory/subdirectory") load-path))
>>
>>    henry> which is not very handy when a directory contains several
>>    henry> different subdirectories with elisp files.
>>
>>I use this:
>>
>>(defun pm/add-tree-to-load-path (dirs)
>>  (mapc (lambda (dir)
>>    (let* ((default-directory dir))
>>      (setq load-path (cons dir load-path))
>>      (normal-top-level-add-subdirs-to-load-path)))
>>	dirs))
>>
>>(pm/add-tree-to-load-path '("~/.emacs.d/config" "~/.emacs.d/packages"))
>
> What's that slash after the pm?

A slash.

>
> First time I've seen a slash in the name of a function...
>

Perfectly legal and often used to make functions more local/attributable e.g your own
functions might be

(defun dc/message(text)
...


> Thanks,
>
> David
>


  reply	other threads:[~2009-10-12 11:40 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-15  5:36 add directories to load-path henry atting
2009-09-15  6:24 ` Gnutux
2009-09-15  6:24 ` Gnutux
2009-09-15  7:10 ` Gnutux
2009-09-15  7:22 ` Gnutux
2009-09-15 10:56 ` Bernardo
2009-09-15 11:05 ` Florian Kaufmann
2009-09-15 11:16 ` Gnutux
2009-09-15 11:29 ` Gnutux
2009-09-15 11:33 ` Gnutux
2009-09-15 11:52 ` Gnutux
2009-09-15 12:24 ` Maurizio Vitale
     [not found] ` <mailman.6765.1253076234.2239.help-gnu-emacs@gnu.org>
2009-09-16  7:09   ` henry atting
     [not found] ` <mailman.6708.1253017158.2239.help-gnu-emacs@gnu.org>
2009-10-12  3:24   ` David Combs
2009-10-12 11:40     ` Richard Riley [this message]
2009-10-13  7:12     ` Tim X

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='hav4j4$s5e$1@news.eternal-september.org' \
    --to=rileyrgdev@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.