diff options
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") + + |