aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/site-lisp
diff options
context:
space:
mode:
authorgxlin <[email protected]>2021-04-16 11:04:08 +0800
committergxlin <[email protected]>2021-04-18 09:35:49 +0800
commit8aaabedde4f1ee045c9fedbcf20fecb3d217531a (patch)
treeca246e2a5aac5375a93c5549d0da76d74de12863 /.emacs.d/site-lisp
parentc81b6905aa178349c8633ac623ae2cd1d91f88a9 (diff)
downloaddotfiles-8aaabedde4f1ee045c9fedbcf20fecb3d217531a.tar.gz
dotfiles-8aaabedde4f1ee045c9fedbcf20fecb3d217531a.tar.bz2
dotfiles-8aaabedde4f1ee045c9fedbcf20fecb3d217531a.zip
Add a lot of emacs config
Diffstat (limited to '.emacs.d/site-lisp')
-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/"))