diff options
author | Kyle Meyer <meyerkya@gmail.com> | 2013-01-11 18:13:03 -0500 |
---|---|---|
committer | Kyle Meyer <meyerkya@gmail.com> | 2013-01-11 18:13:03 -0500 |
commit | f5b226cae165532ed34ffefd7d003d10d984f004 (patch) | |
tree | d0ba659ecf74c7fe5f75546e9c913e30bb48c786 | |
parent | d681d6f132665848fac84494fb801719f5fa4013 (diff) | |
download | emacs.d-f5b226cae165532ed34ffefd7d003d10d984f004.tar.gz |
defun to load config files
-rw-r--r-- | init.el | 43 |
1 files changed, 30 insertions, 13 deletions
@@ -1,19 +1,36 @@ ;; init.el (message ":: Emacs init") + (server-start) (add-to-list 'load-path "~/.emacs.d/conf") -(load "km-pkg.el") -(load "km-ui.el") -(load "km-general.el") -(load "km-editor.el") -(load "km-func.el") -(load "km-org.el") -(load "km-evil.el") -(load "km-ibuffer.el") -(load "km-ido.el") -(load "km-mail.el") -(load "km-python.el") -(load "km-haskell.el") -(load "km-tex.el") + +(defvar km/config-files '( + "km-pkg.el" + "km-ui.el" + "km-general.el" + "km-editor.el" + "km-func.el" + "km-org.el" + "km-evil.el" + "km-ibuffer.el" + "km-ido.el" + "km-mail.el" + "km-python.el" + "km-haskell.el" + "km-tex.el" + ) + "configuration files") + +(defun km/load-config-files () + (dolist (cfile km/config-files) + (load cfile))) + +(defun km/load-config-files2 () + (dolist (cfile km/config-files) + (message "loading %s" cfile) + (load cfile))) + +(km/load-config-files) + (message ":: Init complete") |