summaryrefslogtreecommitdiff
path: root/init.el
diff options
context:
space:
mode:
Diffstat (limited to 'init.el')
-rw-r--r--init.el19
1 files changed, 19 insertions, 0 deletions
diff --git a/init.el b/init.el
new file mode 100644
index 0000000..3e10d19
--- /dev/null
+++ b/init.el
@@ -0,0 +1,19 @@
+;;; macro to conveniently load files
+
+;;;###autoload
+(defvar load-file-directory (cond ((stringp load-file-name)
+ (file-name-directory load-file-name))
+ (t default-directory))
+ "The directory to load files")
+
+(defun load-config (file-name)
+ "Conviently load configuration files in the same directory as this file."
+ (load-file (expand-file-name file-name load-file-directory)))
+
+(load-config "basic.el")
+
+(load-config "theme.el")
+
+;; (load-config "modeline.el")
+
+