Skip to content

Commit

Permalink
split configel-load-package
Browse files Browse the repository at this point in the history
  • Loading branch information
hardaker committed Dec 2, 2016
1 parent e54e708 commit 3d4fab8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions configel.el
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,16 @@
(interactive)
(setq configel-current-path path)
(let ((dirs (directory-files-and-attributes path)))
(mapc 'configel-load-package dirs)
(mapc 'configel-load-package-init dirs)
))

(defun configel-load-package (attributes)
(defun configel-load-package (name)
"Loads a package name via it's init file, and auto-sets up the load path for it"
(interactive "s")
(configel-add-load-path (list name t))
(configel-load-package-init (list name t)))

(defun configel-load-package-init (attributes)
"Load a singular package with a full path"
(interactive)
(let*
Expand Down

0 comments on commit 3d4fab8

Please sign in to comment.