aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/site-lisp/load-config.el
diff options
context:
space:
mode:
Diffstat (limited to '.emacs.d/site-lisp/load-config.el')
-rw-r--r--.emacs.d/site-lisp/load-config.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/.emacs.d/site-lisp/load-config.el b/.emacs.d/site-lisp/load-config.el
new file mode 100644
index 0000000..02f9113
--- /dev/null
+++ b/.emacs.d/site-lisp/load-config.el
@@ -0,0 +1,6 @@
+(defun load-config (filename &optional dirname)
+ (unless dirname (setq dirname "~/.dotfiles/.emacs.d/"))
+ (load (concat dirname (symbol-name filename)) 'noerror))
+
+(defun load-mode (modename)
+ (load-config modename "~/.dotfiles/.emacs.d/modes/"))