.emacs.d

My Emacs configuration files.
Log | Files | Refs | README

commit 695e0436f31c17d61d82951092913e995a2db154
parent a888c5cce71e6d5bbda466d2402c46217b35ec27
Author: Hugo Soucy <hsoucy@kronostechnologies.com>
Date:   Tue, 25 Sep 2018 15:25:39 -0400

Add the `load-directory` to loop over the `partials/` directory

Diffstat:
Minit.el | 21++++++---------------
1 file changed, 6 insertions(+), 15 deletions(-)

diff --git a/init.el b/init.el @@ -22,20 +22,11 @@ (eval-when-compile (require 'use-package)) -(load-file "~/.emacs.d/partials/ui-ux.el") -(load-file "~/.emacs.d/partials/autocompletion.el") -(load-file "~/.emacs.d/partials/fly.el") -(load-file "~/.emacs.d/partials/backups.el") -(load-file "~/.emacs.d/partials/charset-encoding.el") -(load-file "~/.emacs.d/partials/custom-settings.el") -(load-file "~/.emacs.d/partials/defuns.el") -(load-file "~/.emacs.d/partials/diff.el") -(load-file "~/.emacs.d/partials/email.el") -(load-file "~/.emacs.d/partials/key-bindings.el") -(load-file "~/.emacs.d/partials/lua.el") -(load-file "~/.emacs.d/partials/php.el") -(load-file "~/.emacs.d/partials/shell.el") -(load-file "~/.emacs.d/partials/extras.el") -(load-file "~/.emacs.d/partials/webdev.el") +(defun load-directory (dir) + (let ((load-it (lambda (f) + (load-file (concat (file-name-as-directory dir) f))))) + (mapc load-it (directory-files dir nil "\\.el$")))) + +(load-directory "~/.emacs.d/partials/") ;;; init.el ends here