Merge pull request #526 from dougm/load-path-filter
Filter all hidden directories when adding to load-path
This commit is contained in:
commit
f1ddec7a88
1 changed files with 1 additions and 2 deletions
3
init.el
3
init.el
|
@ -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)))))
|
||||
|
||||
|
|
Loading…
Reference in a new issue