-;;; load-dir.el --- load all Emacs Lisp files in given directories
+;;; load-dir.el --- Load all Emacs Lisp files in a given directory
;; Copyright (C) 2011 Free Software Foundation, Inc
;; Authors: Teodor Zlatanov <tzz@lifelogs.com>,
;; Ben Key <bkey76@gmail.com>
;; With-Help-From: Evans Winner <ego111@gmail.com>, PJ Weisberg <pj@irregularexpressions.net>
-;; Version: 0.0.2
+;; Version: 0.0.3
;; Keywords: lisp, files, convenience
;; This file is part of GNU Emacs.
;; it, so for instance adding a lambda to a hook is usually safe.
;;
;; You can specify ~/.emacs.d/load.d, a single directory, or a list of
-;; directories. The file search can be recursive.
+;; directories. The file search can be recursive. See the
+;; customizable variable `load-dirs' for details.
;;
-;; The intent with ~/.emacs.d/load.d is to give package installers like
+;; The intent of ~/.emacs.d/load.d is to give package installers like
;; el-get.el (see https://github.com/dimitri/el-get) and other tools a
-;; way to easily bootstrap themselves without necessarily modifying your
-;; .emacs or custom files directly.
+;; way to easily bootstrap themselves without necessarily modifying
+;; your .emacs or custom files directly.
;;; Code:
(add-to-list 'load-dir-loaded f))))
(when load-dir-recursive
- (dolist (f (directory-files dir t))
+ (dolist (f (directory-files dir t directory-files-no-dot-files-regexp))
(when (file-directory-p f)
(load-dir-one f))))))