]> code.delx.au - dotemacs/blobdiff - init.el
message when init.el is finished
[dotemacs] / init.el
diff --git a/init.el b/init.el
index d06d6589d190530a8f8d0c01d3ad4d8c44140423..ff9ce5f582f63dc2fdd071106c98235e4a585e4d 100644 (file)
--- a/init.el
+++ b/init.el
@@ -1,5 +1,22 @@
-(load "~/.emacs.d/backups.el")
-(load "~/.emacs.d/packages.el")
-(load "~/.emacs.d/display.el")
-(load "~/.emacs.d/keys.el")
-(load "~/.emacs.d/modes.el")
+;;; -*- lexical-binding: t -*-
+
+(add-to-list 'load-path "~/.emacs.d/lisp/")
+
+(dolist (name (directory-files "~/.emacs.d/packages/"))
+  (let ((dirname (concat "~/.emacs.d/packages/" name)))
+    (if (not (equal "." (substring name 0 1)))
+        (if (file-accessible-directory-p dirname)
+            (add-to-list 'load-path dirname)))))
+
+(load-library "my-backups")
+(load-library "my-defuns")
+(load-library "my-gui")
+(load-library "my-keys")
+(load-library "my-completion")
+(load-library "my-recentf")
+(load-library "my-flycheck")
+(load-library "my-other-modes")
+(load-library "my-minor-modes")
+(load-library "my-file-modes")
+
+(message "Successfully loaded init.el")