Merge pull request #526 from dougm/load-path-filter

Filter all hidden directories when adding to load-path
This commit is contained in:
Bozhidar Batsov 2014-05-10 11:16:21 +03:00
commit f1ddec7a88

View file

@ -73,8 +73,7 @@ by Prelude.")
(dolist (f (directory-files parent-dir))
(let ((name (expand-file-name f parent-dir)))
(when (and (file-directory-p name)
(not (equal f ".."))
(not (equal f ".")))
(not (string-prefix-p "." f)))
(add-to-list 'load-path name)
(prelude-add-subfolders-to-load-path name)))))