diff options
author | JSDurand <mmemmew@gmail.com> | 2020-12-22 20:35:51 +0800 |
---|---|---|
committer | JSDurand <mmemmew@gmail.com> | 2020-12-22 20:35:51 +0800 |
commit | 7c16649462beca822c0b72438a2b20e77a261985 (patch) | |
tree | c24981bb691e53fa0a2b0089a40de5938b0fb6a4 /init.el |
Initial commit
Diffstat (limited to 'init.el')
-rw-r--r-- | init.el | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -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") + + |