summaryrefslogtreecommitdiff
path: root/init.el
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2020-12-22 20:35:51 +0800
committerJSDurand <mmemmew@gmail.com>2020-12-22 20:35:51 +0800
commit7c16649462beca822c0b72438a2b20e77a261985 (patch)
treec24981bb691e53fa0a2b0089a40de5938b0fb6a4 /init.el
Initial commit
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")
+
+